1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 17:02:55 +08:00

simplify algebra down

This commit is contained in:
apollo-dw 2021-09-15 11:15:05 +01:00
parent 3a16ec277a
commit 4017598af0

View File

@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
// Cap deltatime to the OD 300 hitwindow. // Cap deltatime to the OD 300 hitwindow.
// 0.93 is derived from making sure 260bpm OD8 streams aren't nerfed harshly, // 0.93 is derived from making sure 260bpm OD8 streams aren't nerfed harshly,
deltaTime /= Math.Clamp(speedWindowRatio * (1/0.93), 0.92, 1); deltaTime /= Math.Clamp(speedWindowRatio / 0.93, 0.92, 1);
double speedBonus = 1.0; double speedBonus = 1.0;
if (deltaTime < min_speed_bonus) if (deltaTime < min_speed_bonus)