diff options
author | Filippos Karapetis | 2009-09-24 06:53:03 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-09-24 06:53:03 +0000 |
commit | a70351e5ea92d1095097ef6fe77911aa530d1043 (patch) | |
tree | c1c0dcde93500ec6895069cca7b899036f760760 /engines/lure/scripts.cpp | |
parent | f6cdfde2f7b697d82839f9106468e55cec149679 (diff) | |
download | scummvm-rg350-a70351e5ea92d1095097ef6fe77911aa530d1043.tar.gz scummvm-rg350-a70351e5ea92d1095097ef6fe77911aa530d1043.tar.bz2 scummvm-rg350-a70351e5ea92d1095097ef6fe77911aa530d1043.zip |
Changed some references from LureEngine to the global g_engine (e.g. calls to shouldQuit()), to minimize places where LureEngine is referenced
svn-id: r44290
Diffstat (limited to 'engines/lure/scripts.cpp')
-rw-r--r-- | engines/lure/scripts.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 9e13a0d871..f78d9b348f 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -192,7 +192,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(); @@ -222,7 +221,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.shouldQuit()) { + while (Sound.musicInterface_CheckPlaying(6) && !g_engine->shouldQuit()) { if (events.interruptableDelay(20)) break; } @@ -230,7 +229,7 @@ void Script::endgameSequence(uint16 v1, uint16 v2, uint16 v3) { delete anim; screen.paletteFadeOut(); - engine.quitGame(); + g_engine->quitGame(); } // Setup the pig fight in the cave |