aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/cycle.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-07-07 23:24:12 +0000
committerChristopher Page2008-07-07 23:24:12 +0000
commit61d25a912ed1a8ca864e7c4dc564624947f3b2fe (patch)
treeedbbb3197f5f6ac67ee7d43c2246dd77e7cff671 /engines/agi/cycle.cpp
parenta4f56de13ac2a7daaf5654c75f07ad6331f375e6 (diff)
downloadscummvm-rg350-61d25a912ed1a8ca864e7c4dc564624947f3b2fe.tar.gz
scummvm-rg350-61d25a912ed1a8ca864e7c4dc564624947f3b2fe.tar.bz2
scummvm-rg350-61d25a912ed1a8ca864e7c4dc564624947f3b2fe.zip
Agi works with the new GMM implementation
svn-id: r32953
Diffstat (limited to 'engines/agi/cycle.cpp')
-rw-r--r--engines/agi/cycle.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index dc0e50cff2..e12efb6a2e 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -24,6 +24,7 @@
*/
+#include "common/events.h"
#include "agi/agi.h"
#include "agi/sprite.h"
@@ -116,7 +117,7 @@ void AgiEngine::interpretCycle() {
oldSound = getflag(fSoundOn);
_game.exitAllLogics = false;
- while (runLogic(0) == 0 && !_quit) {
+ while (runLogic(0) == 0 && !_eventMan->shouldQuit()) {
_game.vars[vWordNotFound] = 0;
_game.vars[vBorderTouchObj] = 0;
_game.vars[vBorderCode] = 0;
@@ -353,10 +354,10 @@ int AgiEngine::playGame() {
_game.vars[vKey] = 0;
}
- if (_quit == 0xff)
+ if (_eventMan->shouldQuit() == 0xff)
ec = errRestartGame;
- } while (_quit == 0);
+ } while (_eventMan->shouldQuit() == 0);
_sound->stopSound();