Revert Math.max in shakeReduction (#8570)

This commit is contained in:
MEEPofFaith
2023-05-09 09:33:59 -04:00
committed by GitHub
parent 552d6a2e9f
commit 2289f29bd5
+1 -1
View File
@@ -93,7 +93,7 @@ public class Renderer implements ApplicationListener{
public void shake(float intensity, float duration){ public void shake(float intensity, float duration){
shakeIntensity = Math.max(shakeIntensity, Mathf.clamp(intensity, 0, 100)); shakeIntensity = Math.max(shakeIntensity, Mathf.clamp(intensity, 0, 100));
shakeTime = Math.max(shakeTime, duration); shakeTime = Math.max(shakeTime, duration);
shakeReduction = Math.max(shakeReduction, shakeIntensity / shakeTime); shakeReduction = shakeIntensity / shakeTime;
} }
public void addEnvRenderer(int mask, Runnable render){ public void addEnvRenderer(int mask, Runnable render){