diff options
Diffstat (limited to 'engines/lure/scripts.cpp')
-rw-r--r-- | engines/lure/scripts.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 495f8046bb..7490f05b24 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -26,7 +26,6 @@ #include "lure/animseq.h" #include "lure/fights.h" #include "lure/game.h" -#include "lure/lure.h" #include "lure/res.h" #include "lure/room.h" #include "lure/screen.h" @@ -191,7 +190,6 @@ void Script::addSound(uint16 soundIndex, uint16 v2, uint16 v3) { } void Script::endgameSequence(uint16 v1, uint16 v2, uint16 v3) { - LureEngine &engine = LureEngine::getReference(); Screen &screen = Screen::getReference(); Mouse &mouse = Mouse::getReference(); Events &events = Events::getReference(); @@ -221,7 +219,7 @@ void Script::endgameSequence(uint16 v1, uint16 v2, uint16 v3) { anim->show(); if (!events.interruptableDelay(30000)) { // No key yet pressed, so keep waiting - while (Sound.musicInterface_CheckPlaying(6) && !engine.quit()) { + while (Sound.musicInterface_CheckPlaying(6) && !events.quitFlag) { if (events.interruptableDelay(20)) break; } @@ -229,7 +227,7 @@ void Script::endgameSequence(uint16 v1, uint16 v2, uint16 v3) { delete anim; screen.paletteFadeOut(); - engine.quitGame(); + events.quitFlag = true; } // Setup the pig fight in the cave |