Add 8 layers to collisions
This commit is contained in:
@@ -192,7 +192,7 @@ bool pathfindAStar(const PathfindingDesc *desc) {
|
||||
x < 0 || x >= map->width)
|
||||
continue;
|
||||
// not walkable
|
||||
if (bzTileMapHasCollision(map, x, y))
|
||||
if (bzTileMapHasAnyCollision(map, x, y))
|
||||
continue;
|
||||
PathNodeRecord *curRecord = &closedSet[y * map->width + x];
|
||||
if (curRecord->visited)
|
||||
|
||||
Reference in New Issue
Block a user