mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08: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)))
|
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;
|
lastF = f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user