mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00:00
Correctly handle missing positional data
This commit is contained in:
parent
02a3c7c025
commit
2feb66d423
@ -95,7 +95,7 @@ namespace osu.Game.Scoring.Legacy
|
||||
|
||||
foreach (var f in score.Replay.Frames.OfType<IConvertibleReplayFrame>().Select(f => f.ConvertTo(beatmap)))
|
||||
{
|
||||
replayData.Append(FormattableString.Invariant($"{f.Time - lastF.Time}|{f.MouseX}|{f.MouseY}|{(int)f.ButtonState},"));
|
||||
replayData.Append(FormattableString.Invariant($"{f.Time - lastF.Time}|{f.MouseX ?? 0}|{f.MouseY ?? 0}|{(int)f.ButtonState},"));
|
||||
lastF = f;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user