From b35088b78818290e60faa6bc5ef2cf240ea059e3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 29 Sep 2019 11:36:25 -0700 Subject: GLK: QUEST: Fix exitting by closing game window --- engines/glk/quest/quest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') 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: -- cgit v1.2.3