diff --git a/src/drunkustry/graphics/DrunkShaders.java b/src/drunkustry/graphics/DrunkShaders.java index fd1b694..98d9837 100644 --- a/src/drunkustry/graphics/DrunkShaders.java +++ b/src/drunkustry/graphics/DrunkShaders.java @@ -58,14 +58,16 @@ public void applyOther(){ float dir = 0; if(settings.getBool("du-aberration-rotation")){ - float sTime = Time.time / 60f; - float amount = Mathf.sin(sTime * 1.7f) - - Mathf.sin(sTime * 2.3f) - + Mathf.sin(sTime * 0.2f) - + Mathf.cos(sTime * 3f) - - Mathf.sin(sTime * 1.2f); - amount *= settings.getFloat("du-aberration-rotation-speed") / 2f; - aberDir += amount * Time.delta; + if(!state.isPaused()){ + float sTime = Time.time / 60f; + float amount = Mathf.sin(sTime * 1.7f) + - Mathf.sin(sTime * 2.3f) + + Mathf.sin(sTime * 0.2f) + + Mathf.cos(sTime * 3f) + - Mathf.sin(sTime * 1.2f); + amount *= settings.getFloat("du-aberration-rotation-speed") / 2f; + aberDir += amount * Time.delta; + } dir = aberDir; }