Fixed: Calling stop on music player should not affect background music.

fix-media-player
Nimetu 5 years ago
parent 36187626a9
commit 92b3a31f0b

@ -434,7 +434,9 @@ void CMusicPlayer::stop ()
return; return;
// stop the music only if we are really playing (else risk to stop a background music!) // stop the music only if we are really playing (else risk to stop a background music!)
if (_State != Stopped)
SoundMngr->stopMusic(0); SoundMngr->stopMusic(0);
_State = Stopped; _State = Stopped;
_PlayStart = 0; _PlayStart = 0;
_PauseTime = 0; _PauseTime = 0;

Loading…
Cancel
Save