mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user