1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Ensure a negative value cannot be added to angleRepeatCount

This commit is contained in:
MBmasher 2022-08-26 20:30:14 +10:00
parent 08cb70b093
commit 5082ee26cf

View File

@ -84,7 +84,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators
// Objects further back in time should count less for the nerf.
if (roundedAngle == initialRoundedAngle)
angleRepeatCount += 1.0 - 0.1 * i;
angleRepeatCount += Math.Max(1.0 - 0.1 * i, 0.0);
}
}