From 2289f29bd50f78c5b0693316c62e5806abbe0e7a Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Tue, 9 May 2023 06:33:59 -0700 Subject: [PATCH] Revert Math.max in shakeReduction (#8570) --- core/src/mindustry/core/Renderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/core/Renderer.java b/core/src/mindustry/core/Renderer.java index a0cb1b37f3..1eb37957f2 100644 --- a/core/src/mindustry/core/Renderer.java +++ b/core/src/mindustry/core/Renderer.java @@ -93,7 +93,7 @@ public class Renderer implements ApplicationListener{ public void shake(float intensity, float duration){ shakeIntensity = Math.max(shakeIntensity, Mathf.clamp(intensity, 0, 100)); shakeTime = Math.max(shakeTime, duration); - shakeReduction = Math.max(shakeReduction, shakeIntensity / shakeTime); + shakeReduction = shakeIntensity / shakeTime; } public void addEnvRenderer(int mask, Runnable render){