aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2019-09-29 11:36:25 -0700
committerPaul Gilbert2019-09-29 15:08:52 -0700
commitb35088b78818290e60faa6bc5ef2cf240ea059e3 (patch)
treedf1fe7575224f943003671d8905f062c917012d5 /engines
parent97e61ddb0ecfe410af57687f5b264992033ccf91 (diff)
downloadscummvm-rg350-b35088b78818290e60faa6bc5ef2cf240ea059e3.tar.gz
scummvm-rg350-b35088b78818290e60faa6bc5ef2cf240ea059e3.tar.bz2
scummvm-rg350-b35088b78818290e60faa6bc5ef2cf240ea059e3.zip
GLK: QUEST: Fix exitting by closing game window
Diffstat (limited to 'engines')
-rw-r--r--engines/glk/quest/quest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/glk/quest/quest.cpp b/engines/glk/quest/quest.cpp
index 71e6ab7475..15d5eda8d0 100644
--- a/engines/glk/quest/quest.cpp
+++ b/engines/glk/quest/quest.cpp
@@ -75,6 +75,8 @@ void Quest::playGame() {
while (ev.type != evtype_LineInput) {
glk_select(&ev);
+ if (shouldQuit())
+ return;
switch (ev.type) {
case evtype_LineInput: