diff options
author | Bastien Bouclet | 2018-06-23 08:12:03 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-06-23 08:12:03 +0200 |
commit | 18fd6f603d3a4efff7db704ceac37571dc083d25 (patch) | |
tree | e041b68b575eacb3c6f5fd3ada204bea46e4133a /engines/mohawk/myst_scripts.cpp | |
parent | b0681082a9ee883b72827a3e2348ea2cf9a1f604 (diff) | |
download | scummvm-rg350-18fd6f603d3a4efff7db704ceac37571dc083d25.tar.gz scummvm-rg350-18fd6f603d3a4efff7db704ceac37571dc083d25.tar.bz2 scummvm-rg350-18fd6f603d3a4efff7db704ceac37571dc083d25.zip |
MOHAWK: MYST: Fix incorrect door close sound for the cablin
Fixes Trac#10580.
Diffstat (limited to 'engines/mohawk/myst_scripts.cpp')
-rw-r--r-- | engines/mohawk/myst_scripts.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp index a2a0c5e171..aac0bd30bf 100644 --- a/engines/mohawk/myst_scripts.cpp +++ b/engines/mohawk/myst_scripts.cpp @@ -561,6 +561,15 @@ void MystScriptParser::o_toggleAreasActivation(uint16 var, const ArgumentsArray void MystScriptParser::o_playSound(uint16 var, const ArgumentsArray &args) { uint16 soundId = args[0]; + // WORKAROUND: In the Myst age, when in front of the cabin coming from the left + // with the door open, when trying to go left, a script tries to play a sound + // with id 4197. That sound does not exist in the game archives. However, when + // going right another script plays a door closing sound with id 4191. + // Here, we replace the incorrect sound id with a proper one. + if (soundId == 4197) { + soundId = 4191; + } + _vm->_sound->playEffect(soundId); } |