Compute combo for nested Objects. Display fruit depending on Combo for

osu!catch
This commit is contained in:
Hanamuke
2018-09-13 21:52:15 +02:00
parent 40f7c1bd99
commit 1c2cc3837a
2 changed files with 10 additions and 1 deletions

View File

@ -44,6 +44,15 @@ namespace osu.Game.Beatmaps
public virtual void PostProcess()
{
foreach (var hitObject in Beatmap.HitObjects)
{
var objectComboInfo = (IHasComboInformation)hitObject;
foreach (var obj in hitObject.NestedHitObjects.OfType<IHasComboInformation>())
{
obj.IndexInCurrentCombo = objectComboInfo.IndexInCurrentCombo;
obj.ComboIndex = objectComboInfo.ComboIndex;
}
}
}
}
}