aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/agos.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-06-07 01:54:35 +0000
committerTravis Howell2007-06-07 01:54:35 +0000
commit8bcf073444813366e15989e08941bd993914c85d (patch)
treee76863c29f3baf51f1f9e6e15517dfcfcec548e9 /engines/agos/agos.cpp
parentbcd4dfb86a4fa064f92da4b975bd12dc7443dea8 (diff)
downloadscummvm-rg350-8bcf073444813366e15989e08941bd993914c85d.tar.gz
scummvm-rg350-8bcf073444813366e15989e08941bd993914c85d.tar.bz2
scummvm-rg350-8bcf073444813366e15989e08941bd993914c85d.zip
Fix non-MIDI music still playing, when the game is paused.
svn-id: r27156
Diffstat (limited to 'engines/agos/agos.cpp')
-rw-r--r--engines/agos/agos.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index 6ef573cafb..5e2f40b17a 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -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);
}