From a0cb624c9d74e90be31bfb0b069fae077cd0e313 Mon Sep 17 00:00:00 2001 From: Shawdooow Date: Thu, 12 Oct 2017 10:28:55 -0400 Subject: [PATCH] start at 1 --- osu.Game.Rulesets.Osu/Objects/Slider.cs | 31 ++++++++++++------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/osu.Game.Rulesets.Osu/Objects/Slider.cs b/osu.Game.Rulesets.Osu/Objects/Slider.cs index 7522a449c6..112fcb1a30 100644 --- a/osu.Game.Rulesets.Osu/Objects/Slider.cs +++ b/osu.Game.Rulesets.Osu/Objects/Slider.cs @@ -139,24 +139,23 @@ namespace osu.Game.Rulesets.Osu.Objects var repeatPointDistance = Math.Min(Distance, length); var repeatDuration = length / Velocity; - for (var repeat = 0; repeat < RepeatCount; repeat++) + for (var repeat = 1; repeat < RepeatCount; repeat++) { - if (repeat > 0) - for (var d = repeatPointDistance; d <= length; d += repeatPointDistance) - { - var repeatStartTime = StartTime + repeat * repeatDuration; - var distanceProgress = d / length; + for (var d = repeatPointDistance; d <= length; d += repeatPointDistance) + { + var repeatStartTime = StartTime + repeat * repeatDuration; + var distanceProgress = d / length; - yield return new RepeatPoint - { - RepeatIndex = repeat, - StartTime = repeatStartTime, - Position = Curve.PositionAt(distanceProgress), - StackHeight = StackHeight, - Scale = Scale, - ComboColour = ComboColour, - }; - } + yield return new RepeatPoint + { + RepeatIndex = repeat, + StartTime = repeatStartTime, + Position = Curve.PositionAt(distanceProgress), + StackHeight = StackHeight, + Scale = Scale, + ComboColour = ComboColour, + }; + } } } }