Save fires from color (#6556)

This commit is contained in:
Sunny Kim
2022-02-06 01:14:43 +09:00
committed by GitHub
parent 7dce2ee9ec
commit 126baa93d7

View File

@@ -1,6 +1,7 @@
package mindustry.entities.comp;
import arc.*;
import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.math.*;
import arc.math.geom.*;
@@ -115,7 +116,7 @@ abstract class FireComp implements Timedc, Posc, Syncc, Drawc{
}
}
Draw.alpha(Mathf.clamp(warmup / warmupDuration));
Draw.color(Color.white, Mathf.clamp(warmup / warmupDuration));
Draw.z(Layer.effect);
Draw.rect(regions[Math.min((int)animation, regions.length - 1)], x + Mathf.randomSeedRange((int)y, 2), y + Mathf.randomSeedRange((int)x, 2));
Draw.reset();