Skip to content

Commit 7aba63d

Browse files
committed
Send to client RenderingStatus upon internal update
1 parent 35b00da commit 7aba63d

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

RLBotCS/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if (args.Length > 0 && args[0] == "--version")
1111
{
1212
Console.WriteLine(
13-
"RLBotServer v5.0.0-rc.1\n"
13+
"RLBotServer v5.0.0-rc.2\n"
1414
+ $"Bridge {BridgeVersion.Version}\n"
1515
+ "@ https://www.rlbot.org & https://github.com/RLBot/core"
1616
);

RLBotCS/Server/FlatBuffersSession.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,21 @@ private async Task HandleInternalMessages()
429429
if (player.Index == m.Status.Index)
430430
{
431431
_renderingIsEnabled = m.Status.Status;
432+
SendPayloadToClient(
433+
CoreMessageUnion.FromRenderingStatus(
434+
new RenderingStatusT()
435+
{
436+
Index = player.Index,
437+
IsBot = m.Status.IsBot,
438+
Status = m.Status.Status,
439+
}
440+
)
441+
);
442+
432443
break;
433444
}
434445
}
446+
435447
break;
436448
case SessionMessage.PingResponse m:
437449
SendPayloadToClient(

0 commit comments

Comments
 (0)