aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2009-08-15 10:09:32 +0000
committerTravis Howell2009-08-15 10:09:32 +0000
commit0630c207220cfcbb579115f163ed13babef93908 (patch)
treeff4982996f98e4ed05bcf266f99a0ab61fb6d68d /engines
parentb1cc1b05de4bef050d69ce6e5016cde1c04e7c53 (diff)
downloadscummvm-rg350-0630c207220cfcbb579115f163ed13babef93908.tar.gz
scummvm-rg350-0630c207220cfcbb579115f163ed13babef93908.tar.bz2
scummvm-rg350-0630c207220cfcbb579115f163ed13babef93908.zip
Fix regression, that caused multiple sounds in Simon the Sorcerer 2 to be cut off.
svn-id: r43400
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/sound.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp
index cdf28e98eb..3008442ed2 100644
--- a/engines/agos/sound.cpp
+++ b/engines/agos/sound.cpp
@@ -633,7 +633,8 @@ void Sound::playEffects(uint sound) {
if (_effectsPaused)
return;
- _mixer->stopHandle(_effectsHandle);
+ if (_vm->getGameType() == GType_SIMON1)
+ _mixer->stopHandle(_effectsHandle);
_effects->playSound(sound, Audio::Mixer::kSFXSoundType, &_effectsHandle, (_vm->getGameId() == GID_SIMON1CD32) ? 0 : Audio::Mixer::FLAG_UNSIGNED);
}