mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09:00
Use variable
This commit is contained in:
parent
73de146fb4
commit
d1a175675d
@ -95,12 +95,12 @@ namespace osu.Game.Rulesets.Replays
|
|||||||
if (!HasFrames || !FrameAccuratePlayback)
|
if (!HasFrames || !FrameAccuratePlayback)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var checkFrame = currentDirection > 0 ? CurrentFrame : NextFrame;
|
var frame = currentDirection > 0 ? CurrentFrame : NextFrame;
|
||||||
|
|
||||||
if (checkFrame == null)
|
if (frame == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return IsImportant(currentDirection > 0 ? CurrentFrame : NextFrame) && //a button is in a pressed state
|
return IsImportant(frame) && //a button is in a pressed state
|
||||||
Math.Abs(CurrentTime - NextFrame?.Time ?? 0) <= AllowedImportantTimeSpan; //the next frame is within an allowable time span
|
Math.Abs(CurrentTime - NextFrame?.Time ?? 0) <= AllowedImportantTimeSpan; //the next frame is within an allowable time span
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user