From 35ffbef557105f03fc54f0e066be46fc757d5805 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 12 Sep 2021 11:07:18 -0400 Subject: [PATCH] #5932 --- core/src/mindustry/content/Fx.java | 4 +++- core/src/mindustry/world/blocks/defense/Wall.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/content/Fx.java b/core/src/mindustry/content/Fx.java index 4e43b052bd..1a07adb56f 100644 --- a/core/src/mindustry/content/Fx.java +++ b/core/src/mindustry/content/Fx.java @@ -32,7 +32,9 @@ public class Fx{ //lifetime is how many frames it takes to fade out the trail e.lifetime = trail.length * 1.4f; - trail.shorten(); + if(!state.isPaused()){ + trail.shorten(); + } trail.drawCap(e.color, e.rotation); trail.draw(e.color, e.rotation); }), diff --git a/core/src/mindustry/world/blocks/defense/Wall.java b/core/src/mindustry/world/blocks/defense/Wall.java index d8d1c620b4..38f1b4f100 100644 --- a/core/src/mindustry/world/blocks/defense/Wall.java +++ b/core/src/mindustry/world/blocks/defense/Wall.java @@ -72,7 +72,9 @@ public class Wall extends Block{ Draw.blend(); Draw.reset(); - hit = Mathf.clamp(hit - Time.delta / 10f); + if(!state.isPaused()){ + hit = Mathf.clamp(hit - Time.delta / 10f); + } } }