diff options
author | Paul Gilbert | 2019-10-07 18:50:16 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-10-07 19:01:52 -0700 |
commit | b37201ef76c1de4bffcf1b45ffad42d2183afca7 (patch) | |
tree | e7495d51c04cc5b5a2888adb3db8a95922b28847 | |
parent | 73271448570887c4721b1f819d2818fad1f3684f (diff) | |
download | scummvm-rg350-b37201ef76c1de4bffcf1b45ffad42d2183afca7.tar.gz scummvm-rg350-b37201ef76c1de4bffcf1b45ffad42d2183afca7.tar.bz2 scummvm-rg350-b37201ef76c1de4bffcf1b45ffad42d2183afca7.zip |
GLK: JACL: Fix exiting game when game window is closed
-rw-r--r-- | engines/glk/jacl/jacl_main.cpp | 2 |
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) { |