Move legacy beatmap combo offset to osu! processor

Better suited there, I intiailly wanted the whole legacy interface to reside in `osu.Game.Rulesets.Osu` but it's required in `ConvertHitObjectParser` and that's in the main game project, so had to leave the interface as-is for now.
This commit is contained in:
Salman Ahmed
2021-05-05 14:24:13 +03:00
parent bf6e98345c
commit 6fb9eb8b33
2 changed files with 19 additions and 10 deletions

View File

@ -48,16 +48,6 @@ namespace osu.Game.Beatmaps
obj.ComboIndex = lastObj.ComboIndex;
}
if (obj is IHasLegacyBeatmapComboOffset legacyObj)
{
var lastLegacyObj = (IHasLegacyBeatmapComboOffset)lastObj;
if (obj.NewCombo)
legacyObj.LegacyBeatmapComboIndex = (lastLegacyObj?.LegacyBeatmapComboIndex ?? 0) + legacyObj.LegacyBeatmapComboOffset + 1;
else if (lastLegacyObj != null)
legacyObj.LegacyBeatmapComboIndex = lastLegacyObj.LegacyBeatmapComboIndex;
}
lastObj = obj;
}
}