mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:33:21 +08:00
Fix precision error
This commit is contained in:
parent
55f0b3c42c
commit
8529cece4a
@ -147,7 +147,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
||||
var generator = new DistanceObjectPatternGenerator(Random, original, beatmap, lastPattern, originalBeatmap);
|
||||
conversion = generator;
|
||||
|
||||
for (double time = original.StartTime; time <= generator.EndTime; time += generator.SegmentDuration)
|
||||
for (double time = original.StartTime; !Precision.DefinitelyBigger(time, generator.EndTime); time += generator.SegmentDuration)
|
||||
{
|
||||
recordNote(time, positionData?.Position ?? Vector2.Zero);
|
||||
computeDensity(time);
|
||||
|
Loading…
Reference in New Issue
Block a user