Skip to content

Commit

Permalink
Fix min duration parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jun 8, 2024
1 parent b7deb0c commit 40752e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShockOsc/Services/UnderscoreConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private void HandleGlobalConfigCommand(string action, object? value)
if (Math.Abs(minDurationFloat - currentMinDuration) < 0.001) return;

_configManager.Config.Behaviour.DurationRange.Min =
MathUtils.ClampUint((uint)Math.Round(minDurationFloat * 100), 300, 30_000);
MathUtils.ClampUint((uint)Math.Round(minDurationFloat * 10_000), 300, 30_000);
ValidateSettings();
_configManager.SaveFnf();
OnConfigUpdate?.Invoke(); // update Ui
Expand Down

0 comments on commit 40752e0

Please sign in to comment.