Skip to content

Commit

Permalink
MOHAWK: MYST: Play complete audio clip when changing the boiler pressure
Browse files Browse the repository at this point in the history
Fixes Trac#10607.
  • Loading branch information
bgK committed Jul 8, 2018
1 parent 0114e43 commit 5dd38b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/mohawk/myst_stacks/myst.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5dd38b8

Please sign in to comment.