aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r--engines/gob/util.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index 0a7b889031..4987426fe0 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "common/events.h"
#include "gob/gob.h"
#include "gob/util.h"
@@ -71,7 +72,7 @@ void Util::longDelay(uint16 msecs) {
_vm->_video->waitRetrace();
processInput();
delay(15);
- } while (!_vm->quit() &&
+ } while (!_vm->_quitRequested &&
((g_system->getMillis() * _vm->_global->_speedFactor) < time));
}
@@ -117,6 +118,9 @@ void Util::processInput(bool scroll) {
break;
case Common::EVENT_KEYUP:
break;
+ case Common::EVENT_QUIT:
+ _vm->_quitRequested = true;
+ break;
default:
break;
}