don't restart music if the same track is already playing

svn-id: r8528
This commit is contained in:
Robert Göffringmann 2003-06-17 12:26:25 +00:00
parent 3764908eb3
commit 61491fb295

View File

@ -148,7 +148,8 @@ void SkyMusicBase::pollMusic(void)
uint8 newTempo;
if (_onNextPoll.doReInit) startDriver();
if (_onNextPoll.doStopMusic) stopMusic();
if (_onNextPoll.musicToProcess) loadNewMusic();
if (_onNextPoll.musicToProcess == _currentMusic) _onNextPoll.musicToProcess = 0;
if (_onNextPoll.musicToProcess) loadNewMusic();
_aktTime += _tempo;