diff options
author | Nicola Mettifogo | 2007-02-18 10:56:45 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-02-18 10:56:45 +0000 |
commit | 06c354c2361d0b0b007e444661e6c9cbcc81abba (patch) | |
tree | e2010c769f20a2c1f3ee381d13698c199b10b6ab /engines | |
parent | 3dd23c5d9a9e814141d5c84be671aa491a39e2a3 (diff) | |
download | scummvm-rg350-06c354c2361d0b0b007e444661e6c9cbcc81abba.tar.gz scummvm-rg350-06c354c2361d0b0b007e444661e6c9cbcc81abba.tar.bz2 scummvm-rg350-06c354c2361d0b0b007e444661e6c9cbcc81abba.zip |
replaced magic number with kFlagsVisited where needed
svn-id: r25680
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/commands.h | 1 | ||||
-rw-r--r-- | engines/parallaction/location.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/parallaction/commands.h b/engines/parallaction/commands.h index 7a95aee1cd..57a6ab53dc 100644 --- a/engines/parallaction/commands.h +++ b/engines/parallaction/commands.h @@ -28,6 +28,7 @@ namespace Parallaction { enum CommandFlags { + kFlagsVisited = 1, kFlagsExit = 0x10000000, kFlagsEnter = 0x20000000, kFlagsGlobal = 0x40000000 diff --git a/engines/parallaction/location.cpp b/engines/parallaction/location.cpp index 46b07ea1e0..c62e8a8323 100644 --- a/engines/parallaction/location.cpp +++ b/engines/parallaction/location.cpp @@ -109,7 +109,7 @@ void Parallaction::parseLocation(const char *filename) { _locationNames[_numLocations][0] = '\0'; _localFlags[_currentLocationIndex] = 0; } else { - _localFlags[_currentLocationIndex] |= 1; // 'visited' + _localFlags[_currentLocationIndex] |= kFlagsVisited; // 'visited' } strcpy(_location, _tokens[1]); @@ -145,7 +145,7 @@ void Parallaction::parseLocation(const char *filename) { _locationACommands = parseCommands(file); } if (!scumm_stricmp(_tokens[0], "FLAGS")) { - if ((_localFlags[_currentLocationIndex] & 1) == 0) { + if ((_localFlags[_currentLocationIndex] & kFlagsVisited) == 0) { // only for 1st visit _localFlags[_currentLocationIndex] = 0; _si = 1; @@ -495,7 +495,7 @@ void Parallaction::doLocationEnterTransition() { debugC(1, kDebugLocation, "doLocationEnterTransition"); byte v60[PALETTE_SIZE]; - if (_localFlags[_currentLocationIndex] & 1) return; // visited + if (_localFlags[_currentLocationIndex] & kFlagsVisited) return; // visited _vm->_graphics->buildBWPalette(v60); _vm->_graphics->setPalette(v60); |