From d3ff894ff6a62a37543a8dbd25dace62b1ce69d9 Mon Sep 17 00:00:00 2001 From: uruk Date: Sat, 27 Jul 2013 10:17:32 +0200 Subject: AVALANCHE: Replace call of Basher::keyboard_link() with Avalanche::updateEvents() in Avalot::run(). --- engines/avalanche/avalot.cpp | 5 +++-- engines/avalanche/basher2.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp index 6c49a669a1..3f967fb868 100644 --- a/engines/avalanche/avalot.cpp +++ b/engines/avalanche/avalot.cpp @@ -182,8 +182,9 @@ void Avalot::run(Common::String arg) { do { uint32 beginLoop = _vm->_system->getMillis(); + _vm->updateEvents(); // The event handler. + _vm->_lucerna->clock_lucerna(); - _vm->_basher->keyboard_link(); _vm->_dropdown->menu_link(); _vm->_trip->readstick(); _vm->_gyro->force_numlock(); @@ -205,7 +206,7 @@ void Avalot::run(Common::String arg) { // Not in the original: - _vm->updateEvents(); // The event handler. + _vm->_graphics->refreshScreen(); // TODO: Maybe it'll have a better place later. Move it there when it's needed. diff --git a/engines/avalanche/basher2.h b/engines/avalanche/basher2.h index eadf3dd3b1..476a6d35f7 100644 --- a/engines/avalanche/basher2.h +++ b/engines/avalanche/basher2.h @@ -31,6 +31,8 @@ // to do this, define the o.c.c. RECORD. Setting gyro.demo to True will // cause them to be played back. +// TODO: Replace these functions gradually with ScummVM's own methods. + #ifndef BASHER2_H #define BASHER2_H -- cgit v1.2.3