diff options
author | Nicola Mettifogo | 2007-05-15 20:07:07 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-05-15 20:07:07 +0000 |
commit | ada3424d8a88b905ab153d84a6f1de12cd4b8e59 (patch) | |
tree | 0e6846074a7bc1a8df01c2d82012e918289bfea3 /engines | |
parent | da658640ff194d42208c8fc17c28075071308b1d (diff) | |
download | scummvm-rg350-ada3424d8a88b905ab153d84a6f1de12cd4b8e59.tar.gz scummvm-rg350-ada3424d8a88b905ab153d84a6f1de12cd4b8e59.tar.bz2 scummvm-rg350-ada3424d8a88b905ab153d84a6f1de12cd4b8e59.zip |
Fixed bug when typing protection code.
svn-id: r26847
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/dialogue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 8d1d6e2643..6d2e3cec51 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -212,7 +212,8 @@ uint16 Parallaction::askDialoguePassword(Dialogue *q, StaticCnv *face) { // 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_QUIT) + g_system->quit(); if (!isdigit(e.kbd.ascii)) continue; password[passwordLen] = e.kbd.ascii; |