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.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index c9f109b8b3..29c97babbc 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -237,8 +237,6 @@ int AgiEngine::mainCycle(bool onlyCheckForEvents) {
} else {
// inner loop active
// call specific workers
- _game.keypress = 0;
-
switch (_game.cycleInnerLoopType) {
case CYCLE_INNERLOOP_GETSTRING: // loop called from TextMgr::stringEdit()
case CYCLE_INNERLOOP_GETNUMBER:
@@ -269,6 +267,12 @@ int AgiEngine::mainCycle(bool onlyCheckForEvents) {
}
break;
+ case CYCLE_INNERLOOP_MESSAGEBOX:
+ if (key) {
+ _text->messageBox_CharPress(key);
+ }
+ break;
+
default:
break;
}
@@ -278,9 +282,6 @@ int AgiEngine::mainCycle(bool onlyCheckForEvents) {
if (_menu->delayedExecuteActive()) {
_menu->execute();
}
-
- if (_game.msgBoxTicks > 0)
- _game.msgBoxTicks--;
}
_gfx->updateScreen();
@@ -347,7 +348,7 @@ int AgiEngine::playGame() {
inGameTimerUpdate();
if (_passedPlayTimeCycles >= getVar(VM_VAR_TIME_DELAY)) {
- _passedPlayTimeCycles = 0;
+ inGameTimerResetPassedCycles();
interpretCycle();