diff options
author | Strangerke | 2013-10-11 08:10:43 +0200 |
---|---|---|
committer | Strangerke | 2013-10-11 08:10:43 +0200 |
commit | aba6b02b5b2bf7cb822e2d35023d2927622d007f (patch) | |
tree | 90219597d5014036f1c932623045982356cf767f /engines/avalanche | |
parent | d202d898da38de1b56f4784c24398ffeb3351e09 (diff) | |
download | scummvm-rg350-aba6b02b5b2bf7cb822e2d35023d2927622d007f.tar.gz scummvm-rg350-aba6b02b5b2bf7cb822e2d35023d2927622d007f.tar.bz2 scummvm-rg350-aba6b02b5b2bf7cb822e2d35023d2927622d007f.zip |
AVALANCHE: Fix two blocking loops not checking shouldQuit()
Diffstat (limited to 'engines/avalanche')
-rw-r--r-- | engines/avalanche/menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/avalanche/menu.cpp b/engines/avalanche/menu.cpp index 1f7006a424..f722b128cc 100644 --- a/engines/avalanche/menu.cpp +++ b/engines/avalanche/menu.cpp @@ -676,7 +676,7 @@ void Menu::update() { // TODO: Optimize it ASAP!!! It really needs it... _menuBar.chooseMenuItem(cursorPos.x); do _vm->updateEvents(); - while (_vm->_holdLeftMouse); + while (_vm->_holdLeftMouse && !_vm->shouldQuit()); while (!_vm->shouldQuit()) { do { @@ -698,7 +698,7 @@ void Menu::update() { // TODO: Optimize it ASAP!!! It really needs it... _activeMenuItem.lightUp(cursorPos); _vm->_graphics->refreshScreen(); - } while (!_vm->_holdLeftMouse); + } while (!_vm->_holdLeftMouse && !_vm->shouldQuit()); if (_vm->_holdLeftMouse) { if (cursorPos.y > 21) { |