Fixed pathfinding using water / Fixed mech factories moving too fast

This commit is contained in:
Anuken
2018-07-05 13:38:42 -04:00
parent 4fa165bc6a
commit 8c6cda0d97
5 changed files with 14 additions and 9 deletions
@@ -84,7 +84,7 @@ public class Pathfinder {
}
private boolean passable(Tile tile, Team team){
return (tile.getWallID() == 0 && tile.cliffs == 0 && !tile.floor().solid && !(tile.floor().isLiquid && (tile.floor().damageTaken > 0 || tile.floor().drownTime > 0)))
return (tile.getWallID() == 0 && !tile.floor().isLiquid && tile.cliffs == 0 && !tile.floor().solid && !(tile.floor().isLiquid && (tile.floor().damageTaken > 0 || tile.floor().drownTime > 0)))
|| (tile.breakable() && (tile.getTeam() != team)) || !tile.solid();
}