diff options
author | Max Horn | 2009-01-30 16:04:39 +0000 |
---|---|---|
committer | Max Horn | 2009-01-30 16:04:39 +0000 |
commit | 716f88f57127e32916ce22f756b1a3f2d2eff9d6 (patch) | |
tree | e8d0463c041f44e52ef8a4bf1487fda8d4076577 /engines/sword1/control.cpp | |
parent | f465abb75d81a248e3c553aa5706031b52c7189d (diff) | |
download | scummvm-rg350-716f88f57127e32916ce22f756b1a3f2d2eff9d6.tar.gz scummvm-rg350-716f88f57127e32916ce22f756b1a3f2d2eff9d6.tar.bz2 scummvm-rg350-716f88f57127e32916ce22f756b1a3f2d2eff9d6.zip |
Avoid using g_engine if possible
svn-id: r36149
Diffstat (limited to 'engines/sword1/control.cpp')
-rw-r--r-- | engines/sword1/control.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index 7022aa89c7..248f593aab 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -218,7 +218,7 @@ void Control::askForCd(void) { notAccepted = false; } } - } while (notAccepted && (!g_engine->shouldQuit())); + } while (notAccepted && (!Engine::shouldQuit())); _resMan->resClose(fontId); free(_screenBuf); @@ -320,7 +320,7 @@ uint8 Control::runPanel(void) { } delay(1000 / 12); newMode = getClicks(mode, &retVal); - } while ((newMode != BUTTON_DONE) && (retVal == 0) && (!g_engine->shouldQuit())); + } while ((newMode != BUTTON_DONE) && (retVal == 0) && (!Engine::shouldQuit())); if (SwordEngine::_systemVars.controlPanelMode == CP_NORMAL) { uint8 volL, volR; @@ -428,7 +428,7 @@ uint8 Control::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) { _buttons[5]->setSelected(SwordEngine::_systemVars.showText); } else if (id == BUTTON_QUIT) { if (getConfirm(_lStrings[STR_QUIT])) - g_engine->quitGame(); + Engine::quitGame(); return mode; } break; |