From 37ea01644ababf4ab432fc43bea36347a3b6180e Mon Sep 17 00:00:00 2001 From: uruk Date: Thu, 25 Jul 2013 23:32:22 +0200 Subject: AVALANCHE: Replace Gyro::slowdown() with ScummVM's own utilities. --- engines/avalanche/avalot.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines') 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(); /* <<_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(); -- cgit v1.2.3