Make FramedReplayInputHandler.CurrentTime non-null

This commit is contained in:
ekrctb
2021-04-16 12:31:32 +09:00
parent 936bde28a3
commit 84bc81a6de
5 changed files with 11 additions and 22 deletions

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using osu.Framework.Input.StateChanges;
using osu.Framework.Utils;
@ -29,9 +28,7 @@ namespace osu.Game.Rulesets.Catch.Replays
if (frame == null)
return null;
Debug.Assert(CurrentTime != null);
return NextFrame != null ? Interpolation.ValueAt(CurrentTime.Value, frame.Position, NextFrame.Position, frame.Time, NextFrame.Time) : frame.Position;
return NextFrame != null ? Interpolation.ValueAt(CurrentTime, frame.Position, NextFrame.Position, frame.Time, NextFrame.Time) : frame.Position;
}
}