Unit naming / Fixed #2209
This commit is contained in:
@@ -92,8 +92,7 @@ public class Units{
|
||||
|
||||
/** Returns the neareset damaged tile. */
|
||||
public static Building findDamagedTile(Team team, float x, float y){
|
||||
Tile tile = Geometry.findClosest(x, y, indexer.getDamaged(team));
|
||||
return tile == null ? null : tile.build;
|
||||
return Geometry.findClosest(x, y, indexer.getDamaged(team));
|
||||
}
|
||||
|
||||
/** Returns the neareset ally tile in a range. */
|
||||
|
||||
Reference in New Issue
Block a user