From 83584519e639c6ce387ebcfb47155e1f5fdbefa1 Mon Sep 17 00:00:00 2001 From: Magnus-Cosmos Date: Mon, 18 Sep 2023 11:40:00 -0400 Subject: [PATCH] Fix extension check using control points instead of path points --- osu.Game/Rulesets/Objects/SliderPath.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Rulesets/Objects/SliderPath.cs b/osu.Game/Rulesets/Objects/SliderPath.cs index 34113285a4..05960ec416 100644 --- a/osu.Game/Rulesets/Objects/SliderPath.cs +++ b/osu.Game/Rulesets/Objects/SliderPath.cs @@ -328,8 +328,8 @@ namespace osu.Game.Rulesets.Objects if (ExpectedDistance.Value is double expectedDistance && calculatedLength != expectedDistance) { - // In osu-stable, if the last two control points of a slider are equal, extension is not performed. - if (ControlPoints.Count >= 2 && ControlPoints[^1].Position == ControlPoints[^2].Position && expectedDistance > calculatedLength) + // In osu-stable, if the last two path points of a slider are equal, extension is not performed. + if (calculatedPath.Count >= 2 && calculatedPath[^1] == calculatedPath[^2] && expectedDistance > calculatedLength) { cumulativeLength.Add(calculatedLength); return;