mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-10 02:37:12 +07:00
Revert Math.max in shakeReduction (#8570)
This commit is contained in:
parent
552d6a2e9f
commit
2289f29bd5
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user