aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/animseq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/animseq.cpp')
-rw-r--r--engines/lure/animseq.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/engines/lure/animseq.cpp b/engines/lure/animseq.cpp
index 3d5265c90f..f9f53b2806 100644
--- a/engines/lure/animseq.cpp
+++ b/engines/lure/animseq.cpp
@@ -44,13 +44,18 @@ AnimAbortType AnimationSequence::delay(uint32 milliseconds) {
while (g_system->getMillis() < delayCtr) {
while (events.pollEvent()) {
if ((events.type() == Common::EVENT_KEYDOWN) && (events.event().kbd.ascii != 0)) {
- if (events.event().kbd.keycode == Common::KEYCODE_ESCAPE) return ABORT_END_INTRO;
- else if (events.event().kbd.keycode == Common::KEYCODE_MAINMENU) return ABORT_NONE;
- else return ABORT_NEXT_SCENE;
- } else if (events.type() == Common::EVENT_LBUTTONDOWN)
+ if (events.event().kbd.keycode == Common::KEYCODE_ESCAPE)
+ return ABORT_END_INTRO;
+ else
+ return ABORT_NEXT_SCENE;
+ } else if (events.type() == Common::EVENT_LBUTTONDOWN) {
return ABORT_NEXT_SCENE;
- else if ((events.type() == Common::EVENT_QUIT) || (events.type() == Common::EVENT_RTL))
+ } else if ((events.type() == Common::EVENT_QUIT) || (events.type() == Common::EVENT_RTL)) {
return ABORT_END_INTRO;
+ } else if (events.type() == Common::EVENT_MAINMENU) {
+ return ABORT_NONE;
+ }
+
}
uint32 delayAmount = delayCtr - g_system->getMillis();