From 965b4ca3ded768c7f6f343f134fddbb0f8b19857 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Tue, 7 Nov 2017 23:52:13 +0000 Subject: SUPERNOVA: Check shouldQuit to break from input loop --- engines/supernova/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/supernova') diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index bc4eeeafdd..08c4f0efe4 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -1162,7 +1162,7 @@ Common::EventType GameManager::getMouseInput() { } void GameManager::getInput() { - while (true) { + while (!_vm->shouldQuit()) { _vm->updateEvents(); if (_mouseClicked || _keyPressed) break; -- cgit v1.2.3