Skip to content

Commit

Permalink
Fixed #8794
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jul 23, 2023
1 parent 4076f09 commit e097346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/mindustry/ai/ControlPathfinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public class ControlPathfinder{

costNaval = (team, tile) ->
//impassable same-team neutral block, or non-liquid
((PathTile.solid(tile) && ((PathTile.team(tile) == team && !PathTile.teamPassable(tile)) || PathTile.team(tile) == 0)) || !PathTile.liquid(tile) ? impassable : 1) +
(PathTile.solid(tile) && ((PathTile.team(tile) == team && !PathTile.teamPassable(tile)) || PathTile.team(tile) == 0)) || !PathTile.liquid(tile) ? impassable :
1 +
//impassable synthetic enemy block
((PathTile.team(tile) != team && PathTile.team(tile) != 0) && PathTile.solid(tile) ? wallImpassableCap : 0) +
(PathTile.nearGround(tile) || PathTile.nearSolid(tile) ? 6 : 0);
Expand Down

0 comments on commit e097346

Please sign in to comment.