diff options
author | Paul Gilbert | 2012-06-19 21:14:56 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-06-19 21:14:56 +1000 |
commit | b8d5e17fefd2a36e253a150fee324c912ca35384 (patch) | |
tree | 098d9cd1cabbc02d40e71692f99cc98eb9eb4e3a | |
parent | 61d460a854ff4883411846703543bb2f797fcd6b (diff) | |
download | scummvm-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
-rw-r--r-- | engines/tony/input.cpp | 2 |
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: |