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:
parent
9d45f1ec12
commit
eae32ca483
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user