diff options
author | Bastien Bouclet | 2018-04-15 07:53:32 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-04-15 07:53:32 +0200 |
commit | 24956f0a569ff34caf1f92ca26525a63c23211b4 (patch) | |
tree | 069cc679dc9bfc28d7c33785e162cd34cbad7d63 | |
parent | b1f927f10577c4547b0667776d5df124d3a8dd15 (diff) | |
download | scummvm-rg350-24956f0a569ff34caf1f92ca26525a63c23211b4.tar.gz scummvm-rg350-24956f0a569ff34caf1f92ca26525a63c23211b4.tar.bz2 scummvm-rg350-24956f0a569ff34caf1f92ca26525a63c23211b4.zip |
MOHAWK: MYST: Fix observatory slider sounds repeating too quickly
Add delays to simulate running at a lower framerate.
-rw-r--r-- | engines/mohawk/myst_stacks/myst.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 82e29eb42f..dcee68f64d 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -1626,6 +1626,7 @@ void Myst::observatoryIncrementMonth(int16 increment) { } _vm->_sound->playEffect(8500); + _vm->wait(20); } void Myst::observatoryMonthChange_run() { @@ -1692,6 +1693,7 @@ void Myst::observatoryIncrementDay(int16 increment) { } _vm->_sound->playEffect(8500); + _vm->wait(20); } void Myst::observatoryDayChange_run() { @@ -1752,6 +1754,7 @@ void Myst::observatoryIncrementYear(int16 increment) { } _vm->_sound->playEffect(8500); + _vm->wait(20); } void Myst::observatoryYearChange_run() { @@ -1817,6 +1820,7 @@ void Myst::observatoryIncrementTime(int16 increment) { } _vm->_sound->playEffect(8500); + _vm->wait(20); } void Myst::observatoryTimeChange_run() { @@ -2512,6 +2516,7 @@ void Myst::observatoryUpdateMonth() { _state.observatoryMonthSetting = month; _state.observatoryMonthSlider = _observatoryMonthSlider->_pos.y; _vm->_sound->playEffect(8500); + _vm->wait(20); // Redraw digits _vm->redrawArea(73); @@ -2539,6 +2544,7 @@ void Myst::observatoryUpdateDay() { _state.observatoryDaySetting = day; _state.observatoryDaySlider = _observatoryDaySlider->_pos.y; _vm->_sound->playEffect(8500); + _vm->wait(20); // Redraw digits _vm->redrawArea(75); @@ -2567,6 +2573,7 @@ void Myst::observatoryUpdateYear() { _state.observatoryYearSetting = year; _state.observatoryYearSlider = _observatoryYearSlider->_pos.y; _vm->_sound->playEffect(8500); + _vm->wait(20); // Redraw digits _vm->redrawArea(79); @@ -2597,6 +2604,7 @@ void Myst::observatoryUpdateTime() { _state.observatoryTimeSetting = time; _state.observatoryTimeSlider = _observatoryTimeSlider->_pos.y; _vm->_sound->playEffect(8500); + _vm->wait(20); // Redraw digits _vm->redrawArea(80); |