Add 8 layers to collisions

This commit is contained in:
2024-01-13 08:09:34 +01:00
parent 0118e574de
commit 8692d89479
10 changed files with 76 additions and 61 deletions

View File

@@ -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)