Fix turret shooting priority when there are multiple teams (#5299)

This commit is contained in:
notrealn
2021-07-20 09:00:19 -04:00
committed by GitHub
parent c18ab184b7
commit 730cb14f6a
2 changed files with 18 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ public class Units{
}
}
/** Returns the closest target enemy. First, units are checked, then tile entities. */
/** Returns the closest target enemy. First, units are checked, then buildings. */
public static Teamc bestTarget(Team team, float x, float y, float range, Boolf<Unit> unitPred, Boolf<Building> tilePred, Sortf sort){
if(team == Team.derelict) return null;