mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Softly-handle infinite loops in mania beatmap conversion
This commit is contained in:
@ -59,8 +59,10 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
||||
{
|
||||
int nextColumn = Random.Next(start, TotalColumns);
|
||||
|
||||
while (PreviousPattern.ColumnHasObject(nextColumn))
|
||||
RunWhile(() => PreviousPattern.ColumnHasObject(nextColumn), () =>
|
||||
{
|
||||
nextColumn = Random.Next(start, TotalColumns);
|
||||
});
|
||||
|
||||
return nextColumn;
|
||||
}
|
||||
|
Reference in New Issue
Block a user