Give last bundled replay frame the frame header

This commit is contained in:
Dan Balasescu
2022-01-31 18:32:17 +09:00
parent 62603e78fd
commit 4727aeda01
4 changed files with 33 additions and 0 deletions

View File

@ -129,6 +129,9 @@ namespace osu.Game.Online.Spectator
Task ISpectatorClient.UserSentFrames(int userId, FrameDataBundle data)
{
if (data.Frames.Count > 0)
data.Frames[^1].Header = data.Header;
Schedule(() => OnNewFrames?.Invoke(userId, data));
return Task.CompletedTask;