1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Fix segmentEnds incorrect on shortened paths

This commit is contained in:
OliBomby 2022-11-03 15:16:31 +01:00
parent cd46ca31f9
commit 98a312ca96

View File

@ -316,6 +316,10 @@ namespace osu.Game.Rulesets.Objects
{
cumulativeLength.RemoveAt(cumulativeLength.Count - 1);
calculatedPath.RemoveAt(pathEndIndex--);
// Shorten the last segment to the expected distance
if (segmentEnds.Count > 0)
segmentEnds[^1]--;
}
}