mirror of
https://github.com/ppy/osu
synced 2025-03-25 04:18:03 +00:00
Set the frame time appropriately to reverse judgements a little better
This commit is contained in:
parent
49731f4c05
commit
5277c3c164
@ -104,7 +104,13 @@ namespace osu.Game.Rulesets.Replays
|
|||||||
{
|
{
|
||||||
//if we changed frames, we want to execute once *exactly* on the frame's time.
|
//if we changed frames, we want to execute once *exactly* on the frame's time.
|
||||||
if (currentDirection == time.CompareTo(NextFrame.Time) && advanceFrame())
|
if (currentDirection == time.CompareTo(NextFrame.Time) && advanceFrame())
|
||||||
|
{
|
||||||
|
// If going backwards, we need to execute once _before_ the frame time to reverse any judgements
|
||||||
|
// that would occur as a result of this frame in forward playback
|
||||||
|
if (currentDirection == -1)
|
||||||
|
return currentTime = CurrentFrame.Time - 1;
|
||||||
return currentTime = CurrentFrame.Time;
|
return currentTime = CurrentFrame.Time;
|
||||||
|
}
|
||||||
|
|
||||||
//if we didn't change frames, we need to ensure we are allowed to run frames in between, else return null.
|
//if we didn't change frames, we need to ensure we are allowed to run frames in between, else return null.
|
||||||
if (inImportantSection)
|
if (inImportantSection)
|
||||||
|
Loading…
Reference in New Issue
Block a user