mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Switch DefinitelyBigger
to AlmostBigger
to account for fp errors
This commit is contained in:
@ -54,7 +54,7 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
startTime += barLength;
|
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);
|
double roundedTime = Math.Round(t, MidpointRounding.AwayFromZero);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user