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
This commit is contained in:
Torbjörn Andersson 2007-08-30 18:59:05 +00:00
parent fedb69dd6b
commit 4be77cb45e

View File

@ -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;