mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-08 01:43:59 +07:00
Moved drawBuilding to UnitType
This commit is contained in:
parent
60a8294694
commit
9dd17ca16b
@ -290,10 +290,6 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
|
||||
return plans.size == 0 ? null : plans.first();
|
||||
}
|
||||
|
||||
public void draw(){
|
||||
drawBuilding();
|
||||
}
|
||||
|
||||
public void drawBuilding(){
|
||||
//TODO make this more generic so it works with builder "weapons"
|
||||
boolean active = activelyBuilding();
|
||||
|
@ -1193,6 +1193,8 @@ public class UnitType extends UnlockableContent implements Senseable{
|
||||
public void draw(Unit unit){
|
||||
if(unit.inFogTo(Vars.player.team())) return;
|
||||
|
||||
unit.drawBuilding();
|
||||
|
||||
boolean isPayload = !unit.isAdded();
|
||||
|
||||
Mechc mech = unit instanceof Mechc ? (Mechc)unit : null;
|
||||
|
Loading…
Reference in New Issue
Block a user