aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-06 08:45:59 +0000
committerNicola Mettifogo2007-08-06 08:45:59 +0000
commitbd56174b5dc138438f0a8dd7684b54b76cd9ced9 (patch)
tree8176b95956ccf3d1e3d48817c1607798614cc01f /engines/parallaction
parenta210dcc03bcaa5af81c9cfe4a22d8d0661d60b93 (diff)
downloadscummvm-rg350-bd56174b5dc138438f0a8dd7684b54b76cd9ced9.tar.gz
scummvm-rg350-bd56174b5dc138438f0a8dd7684b54b76cd9ced9.tar.bz2
scummvm-rg350-bd56174b5dc138438f0a8dd7684b54b76cd9ced9.zip
User can now quit (using shortcuts) when asked for ingame protection code.
svn-id: r28468
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/dialogue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp
index 3398b62f8b..e8a780f846 100644
--- a/engines/parallaction/dialogue.cpp
+++ b/engines/parallaction/dialogue.cpp
@@ -258,9 +258,10 @@ uint16 DialogueManager::askPassword() {
// FIXME: see comment for updateInput()
if (!g_system->getEventManager()->pollEvent(e)) continue;
- if (e.type != Common::EVENT_KEYDOWN) continue;
if (e.type == Common::EVENT_QUIT)
g_system->quit();
+
+ if (e.type != Common::EVENT_KEYDOWN) continue;
if (!isdigit(e.kbd.ascii)) continue;
password[passwordLen] = e.kbd.ascii;