Better pathfinder allDeep calculation

This commit is contained in:
Anuken
2025-07-12 14:26:02 -04:00
parent aeee327e6c
commit 086933614b

View File

@@ -239,6 +239,17 @@ public class Pathfinder implements Runnable{
}
}
//check diagonals for allDeep
if(allDeep){
for(int i = 0; i < 4; i++){
Tile other = tile.nearby(Geometry.d8edge[i]);
if(other != null && !other.floor().isDeep()){
allDeep = false;
break;
}
}
}
int tid = tile.getTeamID();
return PathTile.get(