aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-12-28 02:43:45 +0100
committerThierry Crozat2018-01-23 02:15:45 +0000
commit40b39b2b6d19fac7098c25ec459f6d490560db7c (patch)
tree1906cbf3ee86bd15e529597d092366824aedb76b /engines/supernova
parent1fd7ea7c390617ed525cb87884735119b7bef37e (diff)
downloadscummvm-rg350-40b39b2b6d19fac7098c25ec459f6d490560db7c.tar.gz
scummvm-rg350-40b39b2b6d19fac7098c25ec459f6d490560db7c.tar.bz2
scummvm-rg350-40b39b2b6d19fac7098c25ec459f6d490560db7c.zip
SUPERNOVA: Aborts intro if game should be closed
Diffstat (limited to 'engines/supernova')
-rw-r--r--engines/supernova/rooms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index d926619126..49ebe0090e 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -273,7 +273,7 @@ bool Intro::animate(int section1, int section2, int section3, int section4,
void Intro::cutscene() {
#define exitOnEscape(X) do { \
Common::KeyCode key = Common::KEYCODE_INVALID; \
- if (_gm->waitOnInput(X, key) && key == Common::KEYCODE_ESCAPE) \
+ if ((_gm->waitOnInput(X, key) && key == Common::KEYCODE_ESCAPE) || _vm->shouldQuit()) \
return; \
} while (0);