mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:52:55 +08: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>
|
/// <summary>
|
||||||
/// Whether this <see cref="HitObject"/> is in Kiai time.
|
/// 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);
|
SampleControlPoint = legacyInfo.SamplePointAt(this.GetEndTime() + control_point_leniency);
|
||||||
DifficultyControlPoint = legacyInfo.DifficultyPointAt(StartTime);
|
DifficultyControlPoint = legacyInfo.DifficultyPointAt(StartTime);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
SampleControlPoint ??= SampleControlPoint.DEFAULT;
|
|
||||||
DifficultyControlPoint ??= DifficultyControlPoint.DEFAULT;
|
|
||||||
}
|
|
||||||
|
|
||||||
ApplyDefaultsToSelf(controlPointInfo, difficulty);
|
ApplyDefaultsToSelf(controlPointInfo, difficulty);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user