Minor optimization

This commit is contained in:
Anuken
2024-01-06 12:53:48 -05:00
parent 43e64c5205
commit fae167a91d
2 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,6 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
return !type.flying && world.tiles.in(tileX, tileY) && type.pathCost.getCost(team.id, pathfinder.get(tileX, tileY)) == -1;
}
/** @return approx. square size of the physical hitbox for physics */
public float physicSize(){
return hitSize * 0.7f;