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

Merge pull request #10178 from smoogipoo/fix-taiko-endless-conversion

Fix potential endless taiko beatmap conversion
This commit is contained in:
Dean Herbert 2020-09-17 23:31:27 +09:00 committed by GitHub
commit 0dceef8cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ using osu.Game.Rulesets.Taiko.Objects;
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Utils;
using System.Threading;
using osu.Game.Audio;
using osu.Game.Beatmaps.ControlPoints;
@ -88,6 +89,9 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
{
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)