mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Merge pull request #10178 from smoogipoo/fix-taiko-endless-conversion
Fix potential endless taiko beatmap conversion
This commit is contained in:
commit
0dceef8cd7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user