From 3595c350ab1d644332908afd866ea91faf52b147 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 20 Apr 2024 10:25:43 -0400 Subject: [PATCH] Respect particle effect aspect ratio --- core/src/mindustry/entities/effect/ParticleEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/effect/ParticleEffect.java b/core/src/mindustry/entities/effect/ParticleEffect.java index 0913cecb62..4da451b08f 100644 --- a/core/src/mindustry/entities/effect/ParticleEffect.java +++ b/core/src/mindustry/entities/effect/ParticleEffect.java @@ -88,7 +88,7 @@ public class ParticleEffect extends Effect{ rv.trns(realRotation + rand.range(cone), !randLength ? l : rand.random(l)); float x = rv.x, y = rv.y; - Draw.rect(tex, ox + x, oy + y, rad, rad, realRotation + offset + e.time * spin); + Draw.rect(tex, ox + x, oy + y, rad, rad / tex.ratio(), realRotation + offset + e.time * spin); Drawf.light(ox + x, oy + y, rad * lightScl, lightColor, lightOpacity * Draw.getColor().a); } }