mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 10:12:53 +08:00
Don't split single hitobject into multiple patterns
This commit is contained in:
parent
8529cece4a
commit
0625bfda30
@ -62,6 +62,12 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
{
|
{
|
||||||
var originalPattern = generate();
|
var originalPattern = generate();
|
||||||
|
|
||||||
|
if (originalPattern.HitObjects.Count() == 1)
|
||||||
|
{
|
||||||
|
yield return originalPattern;
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
// We need to split the intermediate pattern into two new patterns:
|
// We need to split the intermediate pattern into two new patterns:
|
||||||
// 1. A pattern containing all objects that do not end at our EndTime.
|
// 1. A pattern containing all objects that do not end at our EndTime.
|
||||||
// 2. A pattern containing all objects that end at our EndTime. This will be used for further pattern generation.
|
// 2. A pattern containing all objects that end at our EndTime. This will be used for further pattern generation.
|
||||||
@ -76,7 +82,6 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
endTimePattern.Add(obj);
|
endTimePattern.Add(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
yield return intermediatePattern;
|
yield return intermediatePattern;
|
||||||
yield return endTimePattern;
|
yield return endTimePattern;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user