diff options
author | Paul Gilbert | 2019-11-26 21:19:17 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-11-27 21:10:29 -0800 |
commit | 5d7386e42b54e69b071e726dec5c3e1bfcb5298f (patch) | |
tree | 62295cccd79ca404e9a3a66d500199a776e1caf9 /engines/glk/agt/interface.cpp | |
parent | c0999ae5ba6800e06c35bb23a9613dd878147618 (diff) | |
download | scummvm-rg350-5d7386e42b54e69b071e726dec5c3e1bfcb5298f.tar.gz scummvm-rg350-5d7386e42b54e69b071e726dec5c3e1bfcb5298f.tar.bz2 scummvm-rg350-5d7386e42b54e69b071e726dec5c3e1bfcb5298f.zip |
GLK: AGT: Properly exit when game window is closed
Diffstat (limited to 'engines/glk/agt/interface.cpp')
-rw-r--r-- | engines/glk/agt/interface.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/glk/agt/interface.cpp b/engines/glk/agt/interface.cpp index e7875696fa..75763d3fb0 100644 --- a/engines/glk/agt/interface.cpp +++ b/engines/glk/agt/interface.cpp @@ -275,7 +275,12 @@ char *agt_readline(int in_type) { s = get_log(); else s = agt_input(in_type); - if (PURE_INPUT) agt_textcolor(-2); + + if (g_vm->shouldQuit()) + return nullptr; + + if (PURE_INPUT) + agt_textcolor(-2); if (logflag & 1) put_log(s); |