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:
parent
bd2d6f3c71
commit
3dae1a209a
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user