From a7ae3cc03e128d0527049cf70f43b439c094e15a Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 14 Sep 2021 16:24:55 +0900 Subject: [PATCH] Change `SampleControlPoint` time to use leniency in bindable changed event too --- osu.Game/Rulesets/Objects/HitObject.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Rulesets/Objects/HitObject.cs b/osu.Game/Rulesets/Objects/HitObject.cs index a7a3b5dc72..c7bf0cad35 100644 --- a/osu.Game/Rulesets/Objects/HitObject.cs +++ b/osu.Game/Rulesets/Objects/HitObject.cs @@ -97,9 +97,9 @@ namespace osu.Game.Rulesets.Objects if (DifficultyControlPoint != DifficultyControlPoint.DEFAULT) DifficultyControlPoint.Time = time.NewValue; - // traditionally this used EndTime, but at the point changes are being made in the editor this should no longer be considered relevant. + if (SampleControlPoint != SampleControlPoint.DEFAULT) - SampleControlPoint.Time = time.NewValue; + SampleControlPoint.Time = this.GetEndTime() + control_point_leniency; }; }