mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Assign default control points earlier in HitObject
construction
This commit is contained in:
parent
2b9157987e
commit
74f385bad8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user