mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-29 21:24:53 +00:00
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:
parent
1cb8454c21
commit
0ebf04520a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user