MOHAWK: MYST: Play complete audio clip when changing the boiler pressure

Fixes Trac#10607.
This commit is contained in:
Bastien Bouclet 2018-07-08 21:55:09 +02:00
parent 0114e43cfe
commit 5dd38b8660

View File

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