mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 02:03:04 +08:00
start at 1
This commit is contained in:
parent
cfb1804aa1
commit
a0cb624c9d
@ -139,24 +139,23 @@ namespace osu.Game.Rulesets.Osu.Objects
|
|||||||
var repeatPointDistance = Math.Min(Distance, length);
|
var repeatPointDistance = Math.Min(Distance, length);
|
||||||
var repeatDuration = length / Velocity;
|
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)
|
||||||
for (var d = repeatPointDistance; d <= length; d += repeatPointDistance)
|
{
|
||||||
{
|
var repeatStartTime = StartTime + repeat * repeatDuration;
|
||||||
var repeatStartTime = StartTime + repeat * repeatDuration;
|
var distanceProgress = d / length;
|
||||||
var distanceProgress = d / length;
|
|
||||||
|
|
||||||
yield return new RepeatPoint
|
yield return new RepeatPoint
|
||||||
{
|
{
|
||||||
RepeatIndex = repeat,
|
RepeatIndex = repeat,
|
||||||
StartTime = repeatStartTime,
|
StartTime = repeatStartTime,
|
||||||
Position = Curve.PositionAt(distanceProgress),
|
Position = Curve.PositionAt(distanceProgress),
|
||||||
StackHeight = StackHeight,
|
StackHeight = StackHeight,
|
||||||
Scale = Scale,
|
Scale = Scale,
|
||||||
ComboColour = ComboColour,
|
ComboColour = ComboColour,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user