1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 07:07:45 +08:00

Remove redundant Math.max

This commit is contained in:
Pants 2024-02-22 19:28:03 -05:00
parent bd2d6f3c71
commit 3dae1a209a

View File

@ -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));