aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2012-06-28 07:19:54 +0200
committerStrangerke2012-06-28 07:19:54 +0200
commit647bc59f992e77fa65dfa7e1e000b85a9ea55c2a (patch)
tree2788e6af7da2e354f6e9f3323dce6425ec2a1471
parent848575b8264e99eeab2dd0f24dda986909048b93 (diff)
downloadscummvm-rg350-647bc59f992e77fa65dfa7e1e000b85a9ea55c2a.tar.gz
scummvm-rg350-647bc59f992e77fa65dfa7e1e000b85a9ea55c2a.tar.bz2
scummvm-rg350-647bc59f992e77fa65dfa7e1e000b85a9ea55c2a.zip
CGE: Rename variable
-rw-r--r--engines/cge/cge.cpp2
-rw-r--r--engines/cge/cge.h2
-rw-r--r--engines/cge/cge_main.cpp8
3 files changed, 6 insertions, 6 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp
index 09fce6323c..2f5acfa4a4 100644
--- a/engines/cge/cge.cpp
+++ b/engines/cge/cge.cpp
@@ -124,7 +124,7 @@ void CGEEngine::init() {
_maxScene = 0;
_dark = false;
_game = false;
- _finis = false;
+ _endGame = false;
_now = 1;
_lev = -1;
_recentStep = -2;
diff --git a/engines/cge/cge.h b/engines/cge/cge.h
index a5c6a62e34..c5be78236a 100644
--- a/engines/cge/cge.h
+++ b/engines/cge/cge.h
@@ -159,7 +159,7 @@ public:
bool _flag[4];
bool _dark;
bool _game;
- bool _finis;
+ bool _endGame;
int _now;
int _lev;
int _mode;
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index bef4f610eb..dd1c78d92e 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -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);