Force first hitobject to be a NewCombo in BeatmapProcessor preprocessing step

This commit is contained in:
Dean Herbert
2020-10-06 19:04:50 +09:00
parent 09f5e9c9eb
commit afe3d3989a

View File

@ -22,8 +22,18 @@ namespace osu.Game.Beatmaps
{
IHasComboInformation lastObj = null;
bool isFirst = true;
foreach (var obj in Beatmap.HitObjects.OfType<IHasComboInformation>())
{
if (isFirst)
{
obj.NewCombo = true;
// first hitobject should always be marked as a new combo for sanity.
isFirst = false;
}
if (obj.NewCombo)
{
obj.IndexInCurrentCombo = 0;