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/game.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/game.cpp')
-rw-r--r-- | engines/lure/game.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp index 3dfc6a8478..660d41eede 100644 --- a/engines/lure/game.cpp +++ b/engines/lure/game.cpp @@ -151,7 +151,7 @@ void Game::execute() { bool initialRestart = true; - while (!engine.shouldQuit()) { + while (!g_engine->shouldQuit()) { if ((_state & GS_RESTART) != 0) { res.reset(); @@ -171,7 +171,7 @@ void Game::execute() { mouse.cursorOn(); // Main game loop - while (!engine.shouldQuit() && ((_state & GS_RESTART) == 0)) { + while (!g_engine->shouldQuit() && ((_state & GS_RESTART) == 0)) { // If time for next frame, allow everything to update if (system.getMillis() > timerVal + GAME_FRAME_DELAY) { timerVal = system.getMillis(); @@ -898,7 +898,7 @@ void Game::doShowCredits() { void Game::doQuit() { Sound.pause(); if (getYN()) - LureEngine::getReference().quitGame(); + g_engine->quitGame(); Sound.resume(); } @@ -983,7 +983,6 @@ bool Game::getYN() { Events &events = Events::getReference(); Screen &screen = Screen::getReference(); Resources &res = Resources::getReference(); - LureEngine &engine = LureEngine::getReference(); Common::Language l = LureEngine::getReference().getLanguage(); Common::KeyCode y = Common::KEYCODE_y; @@ -1025,7 +1024,7 @@ bool Game::getYN() { } g_system->delayMillis(10); - } while (!engine.shouldQuit() && !breakFlag); + } while (!g_engine->shouldQuit() && !breakFlag); screen.update(); if (!vKbdFlag) |