mirror of
https://github.com/osukey/osukey.git
synced 2025-07-31 15:15:27 +09:00
Force first hitobject to be a NewCombo in BeatmapProcessor preprocessing step
This commit is contained in:
@ -22,8 +22,18 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
IHasComboInformation lastObj = null;
|
IHasComboInformation lastObj = null;
|
||||||
|
|
||||||
|
bool isFirst = true;
|
||||||
|
|
||||||
foreach (var obj in Beatmap.HitObjects.OfType<IHasComboInformation>())
|
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)
|
if (obj.NewCombo)
|
||||||
{
|
{
|
||||||
obj.IndexInCurrentCombo = 0;
|
obj.IndexInCurrentCombo = 0;
|
||||||
|
Reference in New Issue
Block a user