aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/input.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-19 21:14:56 +1000
committerPaul Gilbert2012-06-19 21:14:56 +1000
commitb8d5e17fefd2a36e253a150fee324c912ca35384 (patch)
tree098d9cd1cabbc02d40e71692f99cc98eb9eb4e3a /engines/tony/input.cpp
parent61d460a854ff4883411846703543bb2f797fcd6b (diff)
downloadscummvm-rg350-b8d5e17fefd2a36e253a150fee324c912ca35384.tar.gz
scummvm-rg350-b8d5e17fefd2a36e253a150fee324c912ca35384.tar.bz2
scummvm-rg350-b8d5e17fefd2a36e253a150fee324c912ca35384.zip
TONY: Added an extra check for shouldQuit into the main event loop
Diffstat (limited to 'engines/tony/input.cpp')
-rw-r--r--engines/tony/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tony/input.cpp b/engines/tony/input.cpp
index 2a8cdc10c3..7d663c1465 100644
--- a/engines/tony/input.cpp
+++ b/engines/tony/input.cpp
@@ -52,7 +52,7 @@ void RMInput::poll() {
_leftClickMouse = _leftReleaseMouse = _rightClickMouse = _rightReleaseMouse = false;
// Get pending events
- while (g_system->getEventManager()->pollEvent(_event)) {
+ while (g_system->getEventManager()->pollEvent(_event) && !_vm->shouldQuit()) {
switch (_event.type) {
case Common::EVENT_MOUSEMOVE:
case Common::EVENT_LBUTTONDOWN: