From 716f88f57127e32916ce22f756b1a3f2d2eff9d6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 30 Jan 2009 16:04:39 +0000 Subject: Avoid using g_engine if possible svn-id: r36149 --- engines/sky/control.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sky/control.cpp') diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp index ed2902fe47..a1ac2460eb 100644 --- a/engines/sky/control.cpp +++ b/engines/sky/control.cpp @@ -496,7 +496,7 @@ void Control::doControlPanel(void) { _curButtonText = 0; uint16 clickRes = 0; - while (!quitPanel && !g_engine->shouldQuit()) { + while (!quitPanel && !Engine::shouldQuit()) { _text->drawToScreen(WITH_MASK); _system->updateScreen(); _mouseClicked = false; @@ -528,7 +528,7 @@ void Control::doControlPanel(void) { } memset(_screenBuf, 0, GAME_SCREEN_WIDTH * FULL_SCREEN_HEIGHT); _system->copyRectToScreen(_screenBuf, GAME_SCREEN_WIDTH, 0, 0, GAME_SCREEN_WIDTH, FULL_SCREEN_HEIGHT); - if (!g_engine->shouldQuit()) + if (!Engine::shouldQuit()) _system->updateScreen(); _skyScreen->forceRefresh(); _skyScreen->setPaletteEndian((uint8 *)_skyCompact->fetchCpt(SkyEngine::_systemVars.currentPalette)); @@ -607,7 +607,7 @@ uint16 Control::handleClick(ConResource *pButton) { case QUIT_TO_DOS: animClick(pButton); if (getYesNo(quitDos)) - g_engine->quitGame(); + Engine::quitGame(); return 0; default: error("Control::handleClick: unknown routine: %X",pButton->_onClick); @@ -879,7 +879,7 @@ uint16 Control::saveRestorePanel(bool allowSave) { bool refreshNames = true; bool refreshAll = true; uint16 clickRes = 0; - while (!quitPanel && !g_engine->shouldQuit()) { + while (!quitPanel && !Engine::shouldQuit()) { clickRes = 0; if (refreshNames || refreshAll) { if (refreshAll) { -- cgit v1.2.3