This commit is contained in:
Anuken
2024-04-20 19:11:02 -04:00
parent 9859efb97f
commit d8c39089c6
+2 -2
View File
@@ -1361,7 +1361,7 @@ public class ControlPathfinder implements Runnable{
private static boolean passable(int team, PathCost cost, int pos){ private static boolean passable(int team, PathCost cost, int pos){
int amount = cost.getCost(team, pathfinder.tiles[pos]); int amount = cost.getCost(team, pathfinder.tiles[pos]);
return amount < 50; return amount != impassable && amount < 50;
} }
private static boolean solid(int team, PathCost type, int x, int y){ private static boolean solid(int team, PathCost type, int x, int y){
@@ -1370,7 +1370,7 @@ public class ControlPathfinder implements Runnable{
private static boolean solid(int team, PathCost type, int tilePos, boolean checkWall){ private static boolean solid(int team, PathCost type, int tilePos, boolean checkWall){
int cost = cost(team, type, tilePos); int cost = cost(team, type, tilePos);
return cost >= 50; return cost == impassable || cost >= 50;
} }
private static int cost(int team, PathCost cost, int tilePos){ private static int cost(int team, PathCost cost, int tilePos){