aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/dialogs_nebular.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-04-06 08:29:46 +0200
committerTorbjörn Andersson2015-04-06 08:29:46 +0200
commitf3251b5bb65bbd4ecee7a0700e1f876987cc7644 (patch)
tree392fb64673702fd833a8f8b1ca1d4abca61fcfae /engines/mads/nebular/dialogs_nebular.cpp
parent661542b8c62a618f5d4b8265c8f9fb4d7e58a3a7 (diff)
downloadscummvm-rg350-f3251b5bb65bbd4ecee7a0700e1f876987cc7644.tar.gz
scummvm-rg350-f3251b5bb65bbd4ecee7a0700e1f876987cc7644.tar.bz2
scummvm-rg350-f3251b5bb65bbd4ecee7a0700e1f876987cc7644.zip
MADS: Allow quitting in Rex's copy protection dialog
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index 9388aa2aa5..731e7e960d 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -439,10 +439,13 @@ void CopyProtectionDialog::show() {
_vm->_screen.updateScreen();
while (!_vm->shouldQuit()) {
- while (!_vm->_events->isKeyPressed()) {
+ while (!_vm->shouldQuit() && !_vm->_events->isKeyPressed()) {
_vm->_events->delay(1);
}
+ if (_vm->shouldQuit())
+ break;
+
curKey = _vm->_events->getKey();
if (curKey.keycode == Common::KEYCODE_RETURN || curKey.keycode == Common::KEYCODE_KP_ENTER)