1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00
This commit is contained in:
Shawdooow 2017-12-23 22:47:32 -05:00
parent cf315cae56
commit a656656403

View File

@ -117,11 +117,18 @@ namespace osu.Game.Rulesets.Osu.Objects
var minDistanceFromEnd = Velocity * 0.01;
bool sliderStart = false;
for (var repeat = 0; repeat < RepeatCount; repeat++)
{
var repeatStartTime = StartTime + repeat * repeatDuration;
var reversed = repeat % 2 == 1;
if (!sliderStart)
sliderStart = true;
else
sliderStart = false;
for (var d = tickDistance; d <= length; d += tickDistance)
{
if (d > length - minDistanceFromEnd)
@ -130,6 +137,9 @@ namespace osu.Game.Rulesets.Osu.Objects
var distanceProgress = d / length;
var timeProgress = reversed ? 1 - distanceProgress : distanceProgress;
if (sliderStart)
distanceProgress = 0;
AddNested(new SliderTick
{
RepeatIndex = repeat,