Skip to content

Commit

Permalink
ACCESS: Improve the use of _establishTable as a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jan 4, 2015
1 parent 7e45ce9 commit fa07048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engines/access/room.cpp
Expand Up @@ -199,8 +199,8 @@ void Room::loadRoomData(const byte *roomData) {
_vm->_establishFlag = false;
if (roomInfo._estIndex != -1) {
_vm->_establishFlag = true;
if (_vm->_establishTable[roomInfo._estIndex] != 1) {
_vm->_establishTable[roomInfo._estIndex] = 1;
if (!_vm->_establishTable[roomInfo._estIndex]) {
_vm->_establishTable[roomInfo._estIndex] = true;
_vm->establish(0, roomInfo._estIndex);
}
}
Expand Down
2 changes: 1 addition & 1 deletion engines/access/scripts.cpp
Expand Up @@ -572,7 +572,7 @@ void Scripts::cmdSpecial() {
int p2 = _data->readUint16LE();

if (_specialFunction == 1) {
if (_vm->_establishTable[p2] == 1)
if (_vm->_establishTable[p2])
return;

_vm->_screen->savePalette();
Expand Down

0 comments on commit fa07048

Please sign in to comment.