diff options
author | Travis Howell | 2007-06-06 23:48:07 +0000 |
---|---|---|
committer | Travis Howell | 2007-06-06 23:48:07 +0000 |
commit | 06aa0fb25e8970c65f639a543f5821e4669f10d1 (patch) | |
tree | f8f323d106e8a6fc5771088e35ef94e48f1a992b | |
parent | 2fd518ff73e9151a10dcd44fc35ccc0a1c0ffbb2 (diff) | |
download | scummvm-rg350-06aa0fb25e8970c65f639a543f5821e4669f10d1.tar.gz scummvm-rg350-06aa0fb25e8970c65f639a543f5821e4669f10d1.tar.bz2 scummvm-rg350-06aa0fb25e8970c65f639a543f5821e4669f10d1.zip |
Fix pausing sound effects in earlier games.
svn-id: r27150
-rw-r--r-- | engines/agos/sound.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp index 5b2b3becea..21e065cc7f 100644 --- a/engines/agos/sound.cpp +++ b/engines/agos/sound.cpp @@ -674,6 +674,9 @@ void Sound::ambientPause(bool b) { // Elvira 1/2 and Waxworks specific void Sound::playRawData(byte *soundData, uint sound, uint size) { + if (_effectsPaused) + return; + byte *buffer = (byte *)malloc(size); memcpy(buffer, soundData, size); |