mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 21:10:53 +07:00
More pathfinder tweaks
This commit is contained in:
parent
022b3951d2
commit
a7a9a99780
@ -1367,7 +1367,9 @@ public class ControlPathfinder implements Runnable{
|
||||
|
||||
private static boolean nearPassable(int team, PathCost cost, int pos){
|
||||
int amount = cost.getCost(team, pathfinder.tiles[pos]);
|
||||
return amount != impassable && amount < 50;
|
||||
//for standard units: never consider deep water (cost = 6000) passable
|
||||
//for leg units: consider it passable
|
||||
return amount != impassable && amount < (cost == costLegs ? solidCap : 50);
|
||||
}
|
||||
|
||||
private static boolean solid(int team, PathCost type, int x, int y){
|
||||
|
Loading…
Reference in New Issue
Block a user