aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2013-07-25 23:32:22 +0200
committeruruk2013-07-25 23:32:22 +0200
commit37ea01644ababf4ab432fc43bea36347a3b6180e (patch)
treec64869e5322676dc7c95213d0d573da172947eb2
parenta955f6acaba48e91cf1753dd4f85fee06fdeec52 (diff)
downloadscummvm-rg350-37ea01644ababf4ab432fc43bea36347a3b6180e.tar.gz
scummvm-rg350-37ea01644ababf4ab432fc43bea36347a3b6180e.tar.bz2
scummvm-rg350-37ea01644ababf4ab432fc43bea36347a3b6180e.zip
AVALANCHE: Replace Gyro::slowdown() with ScummVM's own utilities.
-rw-r--r--engines/avalanche/avalot.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index 408da93bea..d4700ea8d4 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -180,6 +180,8 @@ void Avalot::run(Common::String arg) {
setup();
do {
+ uint32 beginLoop = _vm->_system->getMillis();
+
_vm->_lucerna->clock_lucerna();
_vm->_basher->keyboard_link();
_vm->_dropdown->menu_link();
@@ -193,7 +195,7 @@ void Avalot::run(Common::String arg) {
if (_vm->_gyro->visible == _vm->_gyro->m_virtual)
_vm->_gyro->plot_vmc(_vm->_gyro->mx, _vm->_gyro->my, _vm->_gyro->cp);
_vm->_lucerna->flip_page(); /* <<<! */
- _vm->_gyro->slowdown();
+
if (_vm->_gyro->visible == _vm->_gyro->m_virtual)
_vm->_gyro->wipe_vmc(_vm->_gyro->cp);
@@ -207,6 +209,10 @@ void Avalot::run(Common::String arg) {
_vm->_graphics->refreshScreen(); // TODO: Maybe it'll have a better place later. Move it there when it's needed.
+ uint32 delay = _vm->_system->getMillis() - beginLoop;
+ if ((delay) <= 55)
+ _vm->_system->delayMillis(55 - delay); // Replaces _vm->_gyro->slowdown();
+
} while (! _vm->_gyro->lmo);
//restorecrtmode();