diff options
Diffstat (limited to 'engines/hdb/ai-funcs.cpp')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 26ba65155e..3a3c50e11d 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -2053,7 +2053,9 @@ bool AI::checkPlayerTileCollision(int x, int y) { } bool AI::checkPlayerCollision(int x, int y, int border) { - debug(9, "STUB: checkPlayerCollison: g_hdb->getDebug() required"); + 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)); } |