aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks/mechanical.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2017-07-05 20:28:07 +0200
committerBastien Bouclet2017-07-05 20:35:26 +0200
commit6f46b174df5f861220b935e16ce998b66062e4ca (patch)
tree4e456fd6d2cf3d5be1be34a8d4b2bfb659932828 /engines/mohawk/myst_stacks/mechanical.cpp
parent31d428fd022686e4a1918b6c7748265f209a7952 (diff)
downloadscummvm-rg350-6f46b174df5f861220b935e16ce998b66062e4ca.tar.gz
scummvm-rg350-6f46b174df5f861220b935e16ce998b66062e4ca.tar.bz2
scummvm-rg350-6f46b174df5f861220b935e16ce998b66062e4ca.zip
MOHAWK: Myst: Poll for events every 10ms when waiting
Diffstat (limited to 'engines/mohawk/myst_stacks/mechanical.cpp')
-rw-r--r--engines/mohawk/myst_stacks/mechanical.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mohawk/myst_stacks/mechanical.cpp b/engines/mohawk/myst_stacks/mechanical.cpp
index 3324c9a22d..6daa5bd220 100644
--- a/engines/mohawk/myst_stacks/mechanical.cpp
+++ b/engines/mohawk/myst_stacks/mechanical.cpp
@@ -401,7 +401,7 @@ void Mechanical::o_elevatorRotationStop(uint16 op, uint16 var, uint16 argc, uint
break;
_vm->redrawArea(12);
- _vm->_system->delayMillis(100);
+ _vm->wait(100);
}
// Increment position
@@ -633,7 +633,7 @@ void Mechanical::elevatorGoMiddle_run() {
_vm->_sound->playSoundBlocking(13120);
_vm->_sound->replaceSoundMyst(8120);
_vm->_gfx->copyImageToBackBuffer(6327, Common::Rect(544, 333));
- _vm->_system->delayMillis(500);
+ _vm->wait(500);
_vm->_sound->replaceSoundMyst(9120);
static uint16 moviePos[2] = { 3540, 5380 };
o_elevatorWindowMovie(121, 0, 2, moviePos);
@@ -690,7 +690,7 @@ void Mechanical::o_elevatorWaitTimeout(uint16 op, uint16 var, uint16 argc, uint1
// Wait while the elevator times out
while (_elevatorGoingMiddle) {
runPersistentScripts();
- _vm->skippableWait(10);
+ _vm->_system->delayMillis(10);
}
}
@@ -788,7 +788,7 @@ void Mechanical::elevatorRotation_run() {
_vm->_sound->replaceSoundMyst(_elevatorRotationSoundId);
_vm->redrawArea(11);
- _vm->_system->delayMillis(100);
+ _vm->wait(100);
}
}
@@ -913,7 +913,7 @@ void Mechanical::fortressSimulation_run() {
if (_fortressSimulationInit) {
// Init sequence
_vm->_sound->replaceBackgroundMyst(_fortressSimulationStartSound1, 65535);
- _vm->skippableWait(5000);
+ _vm->wait(5000, true);
_vm->_sound->replaceSoundMyst(_fortressSimulationStartSound2);
// Update movie while the sound is playing