Allow one hitobject in taiko beatmap converter edge case

This commit is contained in:
smoogipoo 2020-09-18 13:06:41 +09:00
parent 566525e58f
commit c62e4ef5e5
1 changed files with 3 additions and 3 deletions

View File

@ -89,9 +89,6 @@ protected override IEnumerable<TaikoHitObject> ConvertHitObject(HitObject obj, I
{
List<IList<HitSampleInfo>> allSamples = obj is IHasPathWithRepeats curveData ? curveData.NodeSamples : new List<IList<HitSampleInfo>>(new[] { samples });
if (Precision.AlmostEquals(0, tickSpacing))
yield break;
int i = 0;
for (double j = obj.StartTime; j <= obj.StartTime + taikoDuration + tickSpacing / 8; j += tickSpacing)
@ -109,6 +106,9 @@ protected override IEnumerable<TaikoHitObject> ConvertHitObject(HitObject obj, I
};
i = (i + 1) % allSamples.Count;
if (Precision.AlmostEquals(0, tickSpacing))
break;
}
}
else