aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-03 02:21:07 +0100
committerMartin Kiewitz2016-02-03 02:21:07 +0100
commit778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac (patch)
tree51c8437a6c8eab0bd70ef313d71a562f20fca22e /engines/agi/agi.cpp
parentc2038e00d001c93a37028864ad661b89377686c9 (diff)
downloadscummvm-rg350-778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac.tar.gz
scummvm-rg350-778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac.tar.bz2
scummvm-rg350-778c1ddb69bb45b6992fdc9b8fff6b2c8d3e22ac.zip
AGI: Cycle event processing changed
processEvents() renamed to processScummVMEvents() mainCycle() renamed to processAGIEvents() have.key now sets up an inner loop and calls processAGIEvents() to avoid any further cycle work processing
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r--engines/agi/agi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index ba8a2bab13..6046d5ee79 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -62,7 +62,7 @@ void AgiEngine::pollTimer() {
_lastTick += 50;
while (_system->getMillis() < _lastTick) {
- processEvents();
+ processScummVMEvents();
_console->onFrame();
_system->delayMillis(10);
_system->updateScreen();
@@ -77,7 +77,7 @@ void AgiEngine::pause(uint32 msec) {
_gfx->setMouseCursor(true); // Busy mouse cursor
while (_system->getMillis() < endTime) {
- processEvents();
+ processScummVMEvents();
_system->updateScreen();
_system->delayMillis(10);
}
@@ -552,7 +552,7 @@ Common::Error AgiEngine::go() {
if (_game.state < STATE_LOADED) {
do {
- mainCycle();
+ processAGIEvents();
} while (_game.state < STATE_RUNNING);
}