1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Add proper slider following support to OsuAutoReplay.

This commit is contained in:
Dean Herbert 2017-03-06 11:11:42 +09:00
parent 56922b66be
commit 910d9ccc00
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -276,19 +276,12 @@ namespace osu.Game.Modes.Osu
else if (h is Slider)
{
Slider s = h as Slider;
int lastTime = 0;
//foreach (
// Transformation t in
// s..Transformations.FindAll(
// tr => tr.Type == TransformationType.Movement))
//{
// if (lastTime != 0 && t.Time1 - lastTime < frameDelay) continue;
// AddFrameToReplay(Frames, new LegacyReplayFrame(t.Time1, t.StartVector.X, t.StartVector.Y,
// button));
// lastTime = t.Time1;
//}
for (double j = frameDelay; j < s.Duration; j += frameDelay)
{
Vector2 pos = s.PositionAt(j / s.Duration);
addFrameToReplay(new LegacyReplayFrame(h.StartTime + j, pos.X, pos.Y, button));
}
addFrameToReplay(new LegacyReplayFrame(h.EndTime, s.EndPosition.X, s.EndPosition.Y, button));
}