diff options
author | Bastien Bouclet | 2011-08-26 20:49:36 +0200 |
---|---|---|
committer | Bastien Bouclet | 2011-08-27 17:09:13 +0200 |
commit | ac53915d01e69b90fc6bf64dbce2606c9d4044fd (patch) | |
tree | 2ae08989475e9d4f83f28c20205c4102da1734bc /engines | |
parent | e0030a2aab4d78426e4250615b2c40b872f9bbb1 (diff) | |
download | scummvm-rg350-ac53915d01e69b90fc6bf64dbce2606c9d4044fd.tar.gz scummvm-rg350-ac53915d01e69b90fc6bf64dbce2606c9d4044fd.tar.bz2 scummvm-rg350-ac53915d01e69b90fc6bf64dbce2606c9d4044fd.zip |
MOHAWK: Stop the engine sound when Myst's generator voltage goes down to zero (patch from P. Monnerat)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 66492d1200..b67b333a85 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -1350,8 +1350,10 @@ void Myst::o_generatorButtonPressed(uint16 op, uint16 var, uint16 argc, uint16 * if (_state.generatorVoltage) _vm->_sound->replaceSoundMyst(8297); - else + else { _vm->_sound->replaceSoundMyst(9297); + _vm->_sound->stopBackgroundMyst(); + } } else { if (_generatorVoltage) _vm->_sound->replaceSoundMyst(6297); |