diff options
author | Eugene Sandulenko | 2019-07-13 14:48:56 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:18 +0200 |
commit | 2be5c59d952eb53748bf9977d53f0689ea93e53f (patch) | |
tree | b58315772355b8777e6bb1733146066ebeabfbca /engines | |
parent | a35cf6cb93bf3b7ce4ab78ee85a00ac2186e688b (diff) | |
download | scummvm-rg350-2be5c59d952eb53748bf9977d53f0689ea93e53f.tar.gz scummvm-rg350-2be5c59d952eb53748bf9977d53f0689ea93e53f.tar.bz2 scummvm-rg350-2be5c59d952eb53748bf9977d53f0689ea93e53f.zip |
HDB: Complete checkPlayerTileCollision()
Diffstat (limited to 'engines')
-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 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); } |