Skip to content

Commit

Permalink
ACCESS: Fix an issue in checkCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Sep 9, 2014
1 parent e854ec1 commit 984858b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engines/access/room.cpp
Expand Up @@ -705,9 +705,10 @@ bool Room::codeWalls() {
bool Room::checkCode(int v1, int v2) {
Player &p = *_vm->_player;

if (!v1) {
} if (!v2 || (v1 == v2)) {
} else if (v1 & 1) {
if (!v1 || !v2 || (v1 == v2))
return false;

if (v1 & 1) {
if (v2 & 2) {
p._collideFlag = true;
return true;
Expand Down

0 comments on commit 984858b

Please sign in to comment.