CGE: Rename variable

This commit is contained in:
Strangerke 2012-06-28 07:19:54 +02:00
parent 848575b826
commit 647bc59f99
3 changed files with 6 additions and 6 deletions

View File

@ -124,7 +124,7 @@ void CGEEngine::init() {
_maxScene = 0;
_dark = false;
_game = false;
_finis = false;
_endGame = false;
_now = 1;
_lev = -1;
_recentStep = -2;

View File

@ -159,7 +159,7 @@ public:
bool _flag[4];
bool _dark;
bool _game;
bool _finis;
bool _endGame;
int _now;
int _lev;
int _mode;

View File

@ -706,7 +706,7 @@ void CGEEngine::qGame() {
saveGame(0, Common::String("Automatic Savegame"));
_vga->sunset();
_finis = true;
_endGame = true;
}
void CGEEngine::switchScene(int newScene) {
@ -1403,14 +1403,14 @@ void CGEEngine::runGame() {
_keyboard->setClient(_sys);
// main loop
while (!_finis && !_quitFlag) {
if (_flag[3])
while (!_endGame && !_quitFlag) {
if (_flag[3]) // Flag FINIS
_commandHandler->addCallback(kCmdExec, -1, 0, kQGame);
mainLoop();
}
// If finishing game due to closing ScummVM window, explicitly save the game
if (!_finis && canSaveGameStateCurrently())
if (!_endGame && canSaveGameStateCurrently())
qGame();
_keyboard->setClient(NULL);