aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/jacl
diff options
context:
space:
mode:
authorPaul Gilbert2019-10-07 18:50:16 -0700
committerPaul Gilbert2019-10-07 19:01:52 -0700
commitb37201ef76c1de4bffcf1b45ffad42d2183afca7 (patch)
treee7495d51c04cc5b5a2888adb3db8a95922b28847 /engines/glk/jacl
parent73271448570887c4721b1f819d2818fad1f3684f (diff)
downloadscummvm-rg350-b37201ef76c1de4bffcf1b45ffad42d2183afca7.tar.gz
scummvm-rg350-b37201ef76c1de4bffcf1b45ffad42d2183afca7.tar.bz2
scummvm-rg350-b37201ef76c1de4bffcf1b45ffad42d2183afca7.zip
GLK: JACL: Fix exiting game when game window is closed
Diffstat (limited to 'engines/glk/jacl')
-rw-r--r--engines/glk/jacl/jacl_main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/glk/jacl/jacl_main.cpp b/engines/glk/jacl/jacl_main.cpp
index c23bae7eea..7221986b56 100644
--- a/engines/glk/jacl/jacl_main.cpp
+++ b/engines/glk/jacl/jacl_main.cpp
@@ -304,6 +304,8 @@ void glk_main() {
while (!gotline) {
/* GRAB AN EVENT. */
g_vm->glk_select(&ev);
+ if (g_vm->shouldQuit())
+ return;
switch (ev.type) {