mirror of https://github.com/ppy/osu
Fix precision error
This commit is contained in:
parent
55f0b3c42c
commit
8529cece4a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue