Revert Math.max in shakeReduction (#8570)

This commit is contained in:
MEEPofFaith
2023-05-09 06:33:59 -07:00
committed by GitHub
parent 552d6a2e9f
commit 2289f29bd5

View File

@@ -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){