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

Switch DefinitelyBigger to AlmostBigger to account for fp errors

This commit is contained in:
sw1tchbl4d3 2022-10-10 09:39:40 +02:00
parent 9d45f1ec12
commit eae32ca483

View File

@ -54,7 +54,7 @@ namespace osu.Game.Rulesets.Objects
startTime += barLength;
}
for (double t = startTime; Precision.DefinitelyBigger(endTime, t); t += barLength, currentBeat++)
for (double t = startTime; Precision.AlmostBigger(endTime, t); t += barLength, currentBeat++)
{
double roundedTime = Math.Round(t, MidpointRounding.AwayFromZero);