mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
MOHAWK: MYST: Play complete audio clip when changing the boiler pressure
Fixes Trac#10607.
This commit is contained in:
parent
0114e43cfe
commit
5dd38b8660
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user