From 3dae1a209a124f1f3c4febea254f403e5eff1a51 Mon Sep 17 00:00:00 2001 From: Pants Date: Thu, 22 Feb 2024 19:28:03 -0500 Subject: [PATCH] Remove redundant Math.max --- osu.Game.Rulesets.Osu/Mods/OsuModWhiplash.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/Mods/OsuModWhiplash.cs b/osu.Game.Rulesets.Osu/Mods/OsuModWhiplash.cs index b1c0e3042b..bad23730a6 100644 --- a/osu.Game.Rulesets.Osu/Mods/OsuModWhiplash.cs +++ b/osu.Game.Rulesets.Osu/Mods/OsuModWhiplash.cs @@ -41,7 +41,7 @@ namespace osu.Game.Rulesets.Osu.Mods double scaleBpm = getBaseBPM(currentBeatmap); double preempt = hitCircle.TimePreempt; - double newTimePreempt = (scaleBpm / Math.Max(currentBpm, 1)) * preempt; + double newTimePreempt = (scaleBpm / currentBpm) * preempt; //don't allow AR to go over 11 updateTimePreempty(hitCircle, Math.Max(newTimePreempt, 300));