aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/myst_stacks/myst.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp
index 647676e304..2e70778322 100644
--- a/engines/mohawk/myst_stacks/myst.cpp
+++ b/engines/mohawk/myst_stacks/myst.cpp
@@ -2025,6 +2025,10 @@ void Myst::o_boilerIncreasePressureStop(uint16 var, const ArgumentsArray &args)
_boilerPressureIncreasing = false;
_state.treeLastMoveTime = _vm->getTotalPlayTime();
+ while (_vm->_sound->isEffectPlaying()) {
+ _vm->doFrame();
+ }
+
if (_state.cabinPilotLightLit == 1) {
if (_state.cabinValvePosition > 0)
_vm->_sound->playBackground(8098, 49152);
@@ -2096,6 +2100,10 @@ void Myst::o_boilerDecreasePressureStop(uint16 var, const ArgumentsArray &args)
_boilerPressureDecreasing = false;
_state.treeLastMoveTime = _vm->getTotalPlayTime();
+ while (_vm->_sound->isEffectPlaying()) {
+ _vm->doFrame();
+ }
+
if (_state.cabinPilotLightLit == 1) {
if (_state.cabinValvePosition > 0)
_vm->_sound->playBackground(8098, 49152);