mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
the fix
This commit is contained in:
parent
cf315cae56
commit
a656656403
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user