mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 21:10:53 +07:00
Fixed #9760
This commit is contained in:
parent
9859efb97f
commit
d8c39089c6
@ -1361,7 +1361,7 @@ public class ControlPathfinder implements Runnable{
|
||||
|
||||
private static boolean passable(int team, PathCost cost, int 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){
|
||||
@ -1370,7 +1370,7 @@ public class ControlPathfinder implements Runnable{
|
||||
|
||||
private static boolean solid(int team, PathCost type, int tilePos, boolean checkWall){
|
||||
int cost = cost(team, type, tilePos);
|
||||
return cost >= 50;
|
||||
return cost == impassable || cost >= 50;
|
||||
}
|
||||
|
||||
private static int cost(int team, PathCost cost, int tilePos){
|
||||
|
Loading…
Reference in New Issue
Block a user