Fix non-MIDI music still playing, when the game is paused.

svn-id: r27156
This commit is contained in:
Travis Howell 2007-06-07 01:54:35 +00:00
parent bcd4dfb86a
commit 8bcf073444

View File

@ -945,13 +945,17 @@ void AGOSEngine::pause() {
bool music_status = _musicPaused;
_midi.pause(true);
_mixer->pauseAll(true);
_sound->ambientPause(true);
while (_pause) {
delay(1);
if (_keyPressed == 'p')
_pause = 0;
}
_midi.pause(music_status);
_mixer->pauseAll(false);
_sound->ambientPause(ambient_status);
}