1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:20:04 +08:00

Assign default control points earlier in HitObject construction

This commit is contained in:
Dean Herbert 2021-09-02 19:42:34 +09:00
parent 2b9157987e
commit 74f385bad8

View File

@ -66,9 +66,9 @@ namespace osu.Game.Rulesets.Objects
}
}
public SampleControlPoint SampleControlPoint;
public SampleControlPoint SampleControlPoint = SampleControlPoint.DEFAULT;
public DifficultyControlPoint DifficultyControlPoint;
public DifficultyControlPoint DifficultyControlPoint = DifficultyControlPoint.DEFAULT;
/// <summary>
/// Whether this <see cref="HitObject"/> is in Kiai time.
@ -112,11 +112,6 @@ namespace osu.Game.Rulesets.Objects
SampleControlPoint = legacyInfo.SamplePointAt(this.GetEndTime() + control_point_leniency);
DifficultyControlPoint = legacyInfo.DifficultyPointAt(StartTime);
}
else
{
SampleControlPoint ??= SampleControlPoint.DEFAULT;
DifficultyControlPoint ??= DifficultyControlPoint.DEFAULT;
}
ApplyDefaultsToSelf(controlPointInfo, difficulty);