Skip to content

Commit

Permalink
Pitch fluctuation speed setting should actually correspond to speed
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith committed Feb 9, 2024
1 parent 9892e9f commit 1b5b211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drunkustry/audio/DrunkSound.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void initPitch(){

Events.run(Trigger.update, () -> {
Core.audio.globalPitch = 1.001f + Mathf.sin(
150 * settings.getFloat("du-drunk-scl", 1f) / Mathf.PI2,
150 / settings.getFloat("du-drunk-scl", 1f) / Mathf.PI2,
0.5f * settings.getFloat("du-drunk-mag", 1f)
);
});
Expand Down

0 comments on commit 1b5b211

Please sign in to comment.