Fix precision error

This commit is contained in:
smoogipoo 2018-06-18 20:17:19 +09:00
parent 55f0b3c42c
commit 8529cece4a
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ private IEnumerable<ManiaHitObject> generateConverted(HitObject original, IBeatm
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);