diff options
author | Bastien Bouclet | 2018-04-22 08:12:31 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-04-22 08:15:14 +0200 |
commit | 0ebf04520a7e5d2eff59fda6d90cd8b39b43b301 (patch) | |
tree | a7b5a85312a9c74478c1a5df722ec245a23223e9 /engines | |
parent | 1cb8454c216e2ba270c64e2f849e2a57875f8fc5 (diff) | |
download | scummvm-rg350-0ebf04520a7e5d2eff59fda6d90cd8b39b43b301.tar.gz scummvm-rg350-0ebf04520a7e5d2eff59fda6d90cd8b39b43b301.tar.bz2 scummvm-rg350-0ebf04520a7e5d2eff59fda6d90cd8b39b43b301.zip |
MOHAWK: MYST: Fix the sound effect not playing in opcode 41
Changing the background sound when switching cards could stop the effect
sound immediately after it started.
Fixes Trac#10493.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/myst_scripts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp index 4b22a94d0c..1ff08ea77d 100644 --- a/engines/mohawk/myst_scripts.cpp +++ b/engines/mohawk/myst_scripts.cpp @@ -754,11 +754,11 @@ void MystScriptParser::o_changeCardPlaySoundDirectional(uint16 var, const Argume debugC(kDebugScript, "\tdelay between steps: %d", delayBetweenSteps); debugC(kDebugScript, "\tanimated update data size: %d", dataSize); + _vm->changeToCard(cardId, kNoTransition); + if (soundId) _vm->_sound->playEffect(soundId); - _vm->changeToCard(cardId, kNoTransition); - animatedUpdate(ArgumentsArray(args.begin() + 4, dataSize), delayBetweenSteps); } |