diff options
-rw-r--r-- | engines/mads/nebular/game_nebular.cpp | 4 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes1.cpp | 4 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes2.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/mads/nebular/game_nebular.cpp b/engines/mads/nebular/game_nebular.cpp index b1dcfb09ce..9a4fa97a57 100644 --- a/engines/mads/nebular/game_nebular.cpp +++ b/engines/mads/nebular/game_nebular.cpp @@ -44,7 +44,7 @@ GameNebular::GameNebular(MADSEngine *vm): Game(vm) { ProtectionResult GameNebular::checkCopyProtection() { /* // DEBUG: Flag copy protection failure - _globals[5] = -1; + _globals[kCopyProtectFailed] = -1; if (!ConfMan.getBool("copy_protection")) return true; @@ -271,7 +271,7 @@ void GameNebular::setSectionHandler() { } void GameNebular::checkShowDialog() { - if (_vm->_dialogs->_pendingDialog && _player._stepEnabled && !_globals[5]) { + if (_vm->_dialogs->_pendingDialog && _player._stepEnabled && !_globals[kCopyProtectFailed]) { _player.releasePlayerSprites(); _vm->_dialogs->showDialog(); _vm->_dialogs->_pendingDialog = DIALOG_NONE; diff --git a/engines/mads/nebular/nebular_scenes1.cpp b/engines/mads/nebular/nebular_scenes1.cpp index 8dca4e9c6b..ecc80c8ce3 100644 --- a/engines/mads/nebular/nebular_scenes1.cpp +++ b/engines/mads/nebular/nebular_scenes1.cpp @@ -191,7 +191,7 @@ void Scene101::enter() { _game.loadQuoteSet(0x31, 0x32, 0x39, 0x36, 0x37, 0x38, 0); - if (_globals[10]) { + if (_globals[kNeedToStandUp]) { _scene->loadAnimation(Resources::formatName(101, 'S', -1, EXT_AA, ""), 71); _game._player._visible = false; _game._player._stepEnabled = false; @@ -222,7 +222,7 @@ void Scene101::step() { break; case 71: - _globals[10] = false; + _globals[kNeedToStandUp] = false; _game._player._visible = true; _game._player._stepEnabled = true; _game._player._priorTimer = _scene->_frameStartTime - _game._player._ticksAmount; diff --git a/engines/mads/nebular/nebular_scenes2.cpp b/engines/mads/nebular/nebular_scenes2.cpp index 0eada01ebb..b86f9dbc75 100644 --- a/engines/mads/nebular/nebular_scenes2.cpp +++ b/engines/mads/nebular/nebular_scenes2.cpp @@ -1640,7 +1640,7 @@ void Scene208::updateTrap() { return; } - switch (_globals[35]) { + switch (_globals[kLeavesStatus]) { case 0: { _globals._sequenceIndexes[2] = _scene->_sequences.startCycle(_globals._spriteIndexes[2], false, 1); _scene->_sequences.setDepth(_globals._sequenceIndexes[2], 15); |