diff options
author | Torbjörn Andersson | 2007-08-30 18:59:05 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-08-30 18:59:05 +0000 |
commit | 4be77cb45eaf0a864295acac50eac7bd2ee1c2f4 (patch) | |
tree | 6c60f185f5d3b3d6b126bc2e39a7e37ea6c29ca3 /engines/saga | |
parent | fedb69dd6b9b77f2dbbc3dc615500d6a2ccf4c02 (diff) | |
download | scummvm-rg350-4be77cb45eaf0a864295acac50eac7bd2ee1c2f4.tar.gz scummvm-rg350-4be77cb45eaf0a864295acac50eac7bd2ee1c2f4.tar.bz2 scummvm-rg350-4be77cb45eaf0a864295acac50eac7bd2ee1c2f4.zip |
Make checkKey() test for EVENT_QUIT as well, so that we can quit the IHNM intro
even without using the keyboard shortcut.
svn-id: r28765
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/ihnm_introproc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/saga/ihnm_introproc.cpp b/engines/saga/ihnm_introproc.cpp index 53f215b87b..4768e21594 100644 --- a/engines/saga/ihnm_introproc.cpp +++ b/engines/saga/ihnm_introproc.cpp @@ -135,6 +135,9 @@ bool Scene::checkKey() { while (_vm->_eventMan->pollEvent(event)) { switch (event.type) { + case Common::EVENT_QUIT: + _vm->shutDown(); + // fallthrough case Common::EVENT_KEYDOWN: res = true; break; |