From 2f6ca8f45ec6ef8bf86adc3ab60346fa9d14f6a9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 22 Feb 2018 18:58:50 -0500 Subject: XEEN: Fix exiting ScummVM when 'Nothing here' dialog is active --- engines/xeen/scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 27d33824fc..9228afba37 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -253,7 +253,7 @@ int Scripts::checkEvents() { intf.draw3d(true); events.updateGameCounter(); events.wait(1); - } while (!events.isKeyMousePressed()); + } while (!events.isKeyMousePressed() && !_vm->shouldExit()); events.clearEvents(); w.close(); -- cgit v1.2.3