aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai-funcs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 02c694120b..7b72c97821 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -2064,7 +2064,8 @@ bool AI::checkPlayerCollision(int x, int y, int border) {
if (g_hdb->getDebug() == 2 || !_player)
return false;
- return (x > (_player->x - 32 + border) && x < (_player->x - 32 - border) && y >(_player->y - 32 + border) && y < (_player->y - 32 - border));
+ return (x > (_player->x - 32 + border) && x < (_player->x + 32 - border) &&
+ y > (_player->y - 32 + border) && y < (_player->y + 32 - border));
}
void AI::clearDiverters() {