diff options
author | Christopher Page | 2008-07-08 01:33:57 +0000 |
---|---|---|
committer | Christopher Page | 2008-07-08 01:33:57 +0000 |
commit | 3beccaf11591f4eef4a53993d656f1438f614a9c (patch) | |
tree | 67d7432703f64c877ebabfba25d72ed582b76291 /engines/agi/preagi_common.cpp | |
parent | a43f016b94dd9214f0c72ae1f999a3a265977116 (diff) | |
download | scummvm-rg350-3beccaf11591f4eef4a53993d656f1438f614a9c.tar.gz scummvm-rg350-3beccaf11591f4eef4a53993d656f1438f614a9c.tar.bz2 scummvm-rg350-3beccaf11591f4eef4a53993d656f1438f614a9c.zip |
PreAGI works with the new GMM implementation
svn-id: r32956
Diffstat (limited to 'engines/agi/preagi_common.cpp')
-rw-r--r-- | engines/agi/preagi_common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/preagi_common.cpp b/engines/agi/preagi_common.cpp index 5d99dfa7f9..70490b66e7 100644 --- a/engines/agi/preagi_common.cpp +++ b/engines/agi/preagi_common.cpp @@ -122,11 +122,11 @@ void PreAgiEngine::printStrXOR(char *szMsg) { int PreAgiEngine::getSelection(SelectionTypes type) { Common::Event event; - for (;;) { + while (!_eventMan->shouldQuit()) { while (_eventMan->pollEvent(event)) { switch(event.type) { case Common::EVENT_QUIT: - _system->quit(); + return 0; case Common::EVENT_RBUTTONUP: return 0; case Common::EVENT_LBUTTONUP: |