mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 11:36:22 +00:00
CGE: Rename variable
This commit is contained in:
parent
848575b826
commit
647bc59f99
@ -124,7 +124,7 @@ void CGEEngine::init() {
|
||||
_maxScene = 0;
|
||||
_dark = false;
|
||||
_game = false;
|
||||
_finis = false;
|
||||
_endGame = false;
|
||||
_now = 1;
|
||||
_lev = -1;
|
||||
_recentStep = -2;
|
||||
|
@ -159,7 +159,7 @@ public:
|
||||
bool _flag[4];
|
||||
bool _dark;
|
||||
bool _game;
|
||||
bool _finis;
|
||||
bool _endGame;
|
||||
int _now;
|
||||
int _lev;
|
||||
int _mode;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user