diff options
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/room.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp index 3696a4cadf..2c597609e1 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -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; |