don't skip the negative break frame

investigation reveals this frame is played back by stable
This commit is contained in:
Liam DeVoe 2023-07-27 02:12:21 -04:00
parent cc6646c82b
commit 217b07810f
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
#nullable disable #nullable disable
@ -323,7 +323,7 @@ private void readLegacyReplay(Replay replay, StreamReader reader)
// still paying back the deficit from a negative frame. Skip this frame. // still paying back the deficit from a negative frame. Skip this frame.
// Todo: At some point we probably want to rewind and play back the negative-time frames // Todo: At some point we probably want to rewind and play back the negative-time frames
// but for now we'll achieve equal playback to stable by skipping negative frames // but for now we'll achieve equal playback to stable by skipping negative frames
if (timeDeficit < 0 || isNegativeBreakFrame) if (timeDeficit < 0)
continue; continue;
currentFrame = convertFrame(new LegacyReplayFrame(lastTime, currentFrame = convertFrame(new LegacyReplayFrame(lastTime,