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.
This commit is contained in:
Bastien Bouclet 2018-04-22 08:12:31 +02:00
parent 1cb8454c21
commit 0ebf04520a

View File

@ -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);
}