1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Fix slider length calculation including slider head

This commit is contained in:
smoogipoo 2018-05-15 21:25:33 +09:00
parent 1acfc1bbab
commit bc197a88e1

View File

@ -102,7 +102,8 @@ namespace osu.Game.Rulesets.Osu.OsuDifficulty.Preprocessing
} }
}); });
var scoringTimes = slider.NestedHitObjects.Select(t => t.StartTime); // Skip the head circle
var scoringTimes = slider.NestedHitObjects.Skip(1).Select(t => t.StartTime);
foreach (var time in scoringTimes) foreach (var time in scoringTimes)
computeVertex(time); computeVertex(time);
computeVertex(slider.EndTime); computeVertex(slider.EndTime);