aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/dialogs_nebular.cpp
diff options
context:
space:
mode:
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)