1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Fix precision error

This commit is contained in:
smoogipoo 2018-06-18 20:17:19 +09:00
parent 55f0b3c42c
commit 8529cece4a

View File

@ -147,7 +147,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
var generator = new DistanceObjectPatternGenerator(Random, original, beatmap, lastPattern, originalBeatmap); var generator = new DistanceObjectPatternGenerator(Random, original, beatmap, lastPattern, originalBeatmap);
conversion = generator; 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); recordNote(time, positionData?.Position ?? Vector2.Zero);
computeDensity(time); computeDensity(time);