Fixed #10769
This commit is contained in:
@@ -54,6 +54,7 @@ public class ControlPathfinder implements Runnable{
|
||||
|
||||
costLegs = (team, tile) ->
|
||||
PathTile.legSolid(tile) ? impassable : 1 +
|
||||
(PathTile.nearDeep(tile) ? 8 : 0) +
|
||||
(PathTile.deep(tile) ? 6000 : 0) +
|
||||
(PathTile.nearLegSolid(tile) ? 3 : 0),
|
||||
|
||||
@@ -1425,9 +1426,7 @@ public class ControlPathfinder implements Runnable{
|
||||
|
||||
private static boolean nearPassable(int team, PathCost cost, int pos){
|
||||
int amount = cost.getCost(team, pathfinder.tiles[pos]);
|
||||
//for standard units: never consider deep water (cost = 6000) passable
|
||||
//for leg units: consider it passable
|
||||
return amount != impassable && amount < (cost == costLegs ? solidCap : 50);
|
||||
return amount != impassable && amount < 50;
|
||||
}
|
||||
|
||||
private static boolean solid(int team, PathCost type, int x, int y){
|
||||
|
||||
Reference in New Issue
Block a user