Skip to content

Commit

Permalink
ACCESS: Fix implementation of cmdCheckLoc()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 9, 2014
1 parent c930c7e commit 5a3dfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/access/scripts.cpp
Expand Up @@ -198,7 +198,7 @@ void Scripts::cmdCheckLoc(const byte *&pScript) {
int curX = _vm->_player->_rawPlayer.x + _vm->_player->_playerOffset.x;
int curY = _vm->_player->_rawPlayer.y;

if ((curX > minX) && (curX < maxX) && (curY > minY) && (curY < maxY))
if ((curX >= minX) && (curX <= maxX) && (curY >= minY) && (curY <= maxY))
cmdGoto(pScript);
else
pScript += 2;
Expand Down

0 comments on commit 5a3dfb1

Please sign in to comment.