1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Remove unnecessary conditional

This commit is contained in:
smoogipoo 2021-07-05 18:49:09 +09:00
parent 695af31c58
commit 7d6ab08bb3

View File

@ -248,8 +248,7 @@ namespace osu.Game.Rulesets.Osu.Replays
if (timeDifference > 0)
{
// If the last frame is a key-up frame and there has been no wait period, adjust the last frame's position such that it begins eased movement instantaneously.
if (lastLastFrame != null && lastFrame is OsuKeyUpReplayFrame && !hasWaited
&& lastFrame.Time > lastLastFrame.Time) //
if (lastLastFrame != null && lastFrame is OsuKeyUpReplayFrame && !hasWaited)
{
// [lastLastFrame] ... [lastFrame] ... [current frame]
// We want to find the cursor position at lastFrame, so interpolate between lastLastFrame and the new target position.