From 2f851edfc2f620ab7aae01bda0b4228b1ed5d139 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 7 Oct 2018 16:09:57 +0200 Subject: MOHAWK: Show the closed gate on the 3rd channelwood level The original game scripts are missing a delay. Fixes #10727. --- engines/mohawk/myst_scripts.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines') diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp index fa5d3952eb..5cd4e817da 100644 --- a/engines/mohawk/myst_scripts.cpp +++ b/engines/mohawk/myst_scripts.cpp @@ -600,6 +600,15 @@ void MystScriptParser::o_copyBackBufferToScreen(uint16 var, const ArgumentsArray debugC(kDebugScript, "\trect.bottom: %d", rect.bottom); _vm->_gfx->copyBackBufferToScreen(rect); + + // WORKAROUND: On Channelwood, wait for the sound to complete when + // closing the gate on the third level near the blue page. + // Fixes the gate not changing visual state despite the closing + // sound playing. + // There is one card id per side of the gate. + if (_vm->getCard()->getId() == 3481 || _vm->getCard()->getId() == 3522) { + soundWaitStop(); + } } void MystScriptParser::o_copyImageToBackBuffer(uint16 var, const ArgumentsArray &args) { -- cgit v1.2.3