aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/cycle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/cycle.cpp')
-rw-r--r--engines/agi/cycle.cpp25
1 files changed, 4 insertions, 21 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index dd31fee887..1747452b11 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -195,10 +195,6 @@ int AgiEngine::mainCycle(bool onlyCheckForEvents) {
pollTimer();
}
- if (_menu->delayedExecuteActive()) {
- _menu->execute();
- }
-
key = doPollKeyboard();
// In AGI Mouse emulation mode we must update the mouse-related
@@ -308,6 +304,10 @@ int AgiEngine::mainCycle(bool onlyCheckForEvents) {
}
}
+ if (_menu->delayedExecuteActive()) {
+ _menu->execute();
+ }
+
if (!onlyCheckForEvents) {
if (_game.msgBoxTicks > 0)
_game.msgBoxTicks--;
@@ -408,23 +408,6 @@ int AgiEngine::playGame() {
int AgiEngine::runGame() {
int ec = errOK;
- // figure out the expected menu trigger for the current platform
- // need to trigger the menu via mouse and via keyboard for platforms except PC
- if (!(getFeatures() & GF_ESCPAUSE)) {
- switch (getPlatform()) {
- case Common::kPlatformAmiga:
- case Common::kPlatformApple2GS:
- _game.specialMenuTriggerKey = AGI_MENU_TRIGGER_APPLE2GS;
- break;
- case Common::kPlatformAtariST:
- _game.specialMenuTriggerKey = AGI_MENU_TRIGGER_ATARIST;
- break;
- // Macintosh games seem to use ESC key just like PC versions do
- default:
- break;
- }
- }
-
// Execute the game
do {
debugC(2, kDebugLevelMain, "game loop");