mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Fix extension check using control points instead of path points
This commit is contained in:
parent
0985bb0577
commit
83584519e6
@ -328,8 +328,8 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
|
|
||||||
if (ExpectedDistance.Value is double expectedDistance && calculatedLength != expectedDistance)
|
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.
|
// In osu-stable, if the last two path points of a slider are equal, extension is not performed.
|
||||||
if (ControlPoints.Count >= 2 && ControlPoints[^1].Position == ControlPoints[^2].Position && expectedDistance > calculatedLength)
|
if (calculatedPath.Count >= 2 && calculatedPath[^1] == calculatedPath[^2] && expectedDistance > calculatedLength)
|
||||||
{
|
{
|
||||||
cumulativeLength.Add(calculatedLength);
|
cumulativeLength.Add(calculatedLength);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user