mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Fix indices in beatmap not being transferred to children (and being off by one)
This commit is contained in:
parent
02f3e78b14
commit
1938dd04cf
@ -34,9 +34,14 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
|||||||
|
|
||||||
foreach (var obj in Beatmap.HitObjects.OfType<CatchHitObject>())
|
foreach (var obj in Beatmap.HitObjects.OfType<CatchHitObject>())
|
||||||
{
|
{
|
||||||
obj.IndexInBeatmap = index++;
|
obj.IndexInBeatmap = index;
|
||||||
|
foreach (var nested in obj.NestedHitObjects.OfType<CatchHitObject>())
|
||||||
|
nested.IndexInBeatmap = index;
|
||||||
|
|
||||||
if (obj.LastInCombo && obj.NestedHitObjects.LastOrDefault() is IHasComboInformation lastNested)
|
if (obj.LastInCombo && obj.NestedHitObjects.LastOrDefault() is IHasComboInformation lastNested)
|
||||||
lastNested.LastInCombo = true;
|
lastNested.LastInCombo = true;
|
||||||
|
|
||||||
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user