aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/intro.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/intro.cpp')
-rw-r--r--engines/lure/intro.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/lure/intro.cpp b/engines/lure/intro.cpp
index b4cbf4a833..4d3e172dc5 100644
--- a/engines/lure/intro.cpp
+++ b/engines/lure/intro.cpp
@@ -55,18 +55,17 @@ static const AnimRecord anim_screens[] = {
bool Introduction::showScreen(uint16 screenId, uint16 paletteId, uint16 delaySize) {
Screen &screen = Screen::getReference();
+ Events &events = Events::getReference();
bool isEGA = LureEngine::getReference().isEGA();
screen.screen().loadScreen(screenId);
screen.update();
Palette p(paletteId);
- if (LureEngine::getReference().quit()) return true;
-
if (isEGA) screen.setPalette(&p);
else screen.paletteFadeIn(&p);
bool result = interruptableDelay(delaySize);
- if (LureEngine::getReference().quit()) return true;
+ if (events.quitFlag) return true;
if (!isEGA)
screen.paletteFadeOut();
@@ -84,8 +83,6 @@ bool Introduction::interruptableDelay(uint32 milliseconds) {
if (events.interruptableDelay(milliseconds)) {
if (events.type() == Common::EVENT_KEYDOWN)
return events.event().kbd.keycode == 27;
- else if (LureEngine::getReference().quit())
- return true;
else if (events.type() == Common::EVENT_LBUTTONDOWN)
return false;
}