diff options
author | Filippos Karapetis | 2014-05-08 10:47:15 +0300 |
---|---|---|
committer | Filippos Karapetis | 2014-05-08 10:47:15 +0300 |
commit | 2502bd89966f8b6398be4fc0428aaba1831ad530 (patch) | |
tree | 2a08b92fa7e271182aa5e029cd6ee1ac1ccd5495 /engines/mads | |
parent | 4d98dafc5c777501e55d791a80cfcf01b4e1281d (diff) | |
download | scummvm-rg350-2502bd89966f8b6398be4fc0428aaba1831ad530.tar.gz scummvm-rg350-2502bd89966f8b6398be4fc0428aaba1831ad530.tar.bz2 scummvm-rg350-2502bd89966f8b6398be4fc0428aaba1831ad530.zip |
MADS: Use friendly names in globals
Diffstat (limited to 'engines/mads')
-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); |