From 32db058dbe51e95d7cfa8952646f51bcd27d36fd Mon Sep 17 00:00:00 2001 From: Matthew Peng <54301439+MEEPofFaith@users.noreply.github.com> Date: Sat, 11 Sep 2021 15:47:30 -0700 Subject: [PATCH] Why is the smelter `-top` drawn between the flame circles? (#5817) --- core/src/mindustry/world/draw/DrawSmelter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/draw/DrawSmelter.java b/core/src/mindustry/world/draw/DrawSmelter.java index 9402ecbd75..681723f7fd 100644 --- a/core/src/mindustry/world/draw/DrawSmelter.java +++ b/core/src/mindustry/world/draw/DrawSmelter.java @@ -38,13 +38,15 @@ public class DrawSmelter extends DrawBlock{ float cr = Mathf.random(0.1f); Draw.z(Layer.block + 0.01f); + + Draw.alpha(build.warmup); + Draw.rect(top, build.x, build.y); Draw.alpha(((1f - g) + Mathf.absin(Time.time, 8f, g) + Mathf.random(r) - r) * build.warmup); Draw.tint(flameColor); Fill.circle(build.x, build.y, flameRadius + Mathf.absin(Time.time, flameRadiusScl, flameRadiusMag) + cr); Draw.color(1f, 1f, 1f, build.warmup); - Draw.rect(top, build.x, build.y); Fill.circle(build.x, build.y, flameRadiusIn + Mathf.absin(Time.time, flameRadiusScl, flameRadiusInMag) + cr); Draw.color();