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
This commit is contained in:
parent
f6cdfde2f7
commit
a70351e5ea
6 changed files with 19 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue