diff options
author | Strangerke | 2014-08-09 15:54:08 +0200 |
---|---|---|
committer | Strangerke | 2014-08-09 15:54:08 +0200 |
commit | 5a3dfb1a7bd27bef578479b3666a6dbf9a08ce3b (patch) | |
tree | 1806cac21ccf1e5165c90eab125e6bd4386c554d | |
parent | c930c7e6ed0128ea012d7cc09ce855e7a06b6c3c (diff) | |
download | scummvm-rg350-5a3dfb1a7bd27bef578479b3666a6dbf9a08ce3b.tar.gz scummvm-rg350-5a3dfb1a7bd27bef578479b3666a6dbf9a08ce3b.tar.bz2 scummvm-rg350-5a3dfb1a7bd27bef578479b3666a6dbf9a08ce3b.zip |
ACCESS: Fix implementation of cmdCheckLoc()
-rw-r--r-- | engines/access/scripts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |