From 5a3dfb1a7bd27bef578479b3666a6dbf9a08ce3b Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 9 Aug 2014 15:54:08 +0200 Subject: ACCESS: Fix implementation of cmdCheckLoc() --- engines/access/scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index c78ecf573d..01fb73ecb4 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -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; -- cgit v1.2.3