aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-13 14:48:56 +0200
committerEugene Sandulenko2019-09-03 17:17:18 +0200
commit2be5c59d952eb53748bf9977d53f0689ea93e53f (patch)
treeb58315772355b8777e6bb1733146066ebeabfbca
parenta35cf6cb93bf3b7ce4ab78ee85a00ac2186e688b (diff)
downloadscummvm-rg350-2be5c59d952eb53748bf9977d53f0689ea93e53f.tar.gz
scummvm-rg350-2be5c59d952eb53748bf9977d53f0689ea93e53f.tar.bz2
scummvm-rg350-2be5c59d952eb53748bf9977d53f0689ea93e53f.zip
HDB: Complete checkPlayerTileCollision()
-rw-r--r--engines/hdb/ai-funcs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index e3de84599a..4988974b0e 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -2046,7 +2046,9 @@ AIEntity *AI::playerCollision(int topBorder, int bottomBorder, int leftBorder, i
}
bool AI::checkPlayerTileCollision(int x, int y) {
- debug(9, "STUB: checkPlayerTileCollison: g_hdb->getDebug() required");
+ if (g_hdb->getDebug() == 2)
+ return false;
+
return (_player->tileX == x && _player->tileY == y);
}