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

develop
Nimetu 5 years ago committed by kaetemi
parent e9f63f2556
commit c09736a08a

@ -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!)
SoundMngr->stopMusic(0); if (_State != Stopped)
SoundMngr->stopMusic(0);
_State = Stopped; _State = Stopped;
_PlayStart = 0; _PlayStart = 0;
_PauseTime = 0; _PauseTime = 0;

Loading…
Cancel
Save