Skip to content

Commit 943d3e3

Browse files
committed
Consistent engine whites
1 parent 7dedf6c commit 943d3e3

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

core/src/mindustry/type/UnitType.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,29 +1754,30 @@ public void draw(Unit unit){
17541754

17551755
Tmp.v1.set(x, y).rotate(rot);
17561756
float ex = Tmp.v1.x, ey = Tmp.v1.y;
1757+
float rad = (radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale;
17571758

17581759
//engine outlines (cursed?)
17591760
/*float z = Draw.z();
17601761
Draw.z(z - 0.0001f);
17611762
Draw.color(type.outlineColor);
17621763
Fill.circle(
1763-
unit.x + ex,
1764-
unit.y + ey,
1765-
(type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
1764+
unit.x + ex,
1765+
unit.y + ey,
1766+
(type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
17661767
);
17671768
Draw.z(z);*/
17681769

17691770
Draw.color(color);
17701771
Fill.circle(
1771-
unit.x + ex,
1772-
unit.y + ey,
1773-
(radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
1772+
unit.x + ex,
1773+
unit.y + ey,
1774+
rad
17741775
);
17751776
Draw.color(type.engineColorInner);
17761777
Fill.circle(
1777-
unit.x + ex - Angles.trnsx(rot + rotation, 1f),
1778-
unit.y + ey - Angles.trnsy(rot + rotation, 1f),
1779-
(radius + Mathf.absin(Time.time, 2f, radius / 4f)) / 2f * scale
1778+
unit.x + ex - Angles.trnsx(rot + rotation, rad / 4f),
1779+
unit.y + ey - Angles.trnsy(rot + rotation, rad / 4f),
1780+
rad / 2f
17801781
);
17811782
}
17821783

0 commit comments

Comments
 (0)