Skip to content

Commit e4e3a0e

Browse files
authored
Merge pull request #141 from RLBot/ru-fix
Send to client RenderingStatus upon internal update
2 parents 35b00da + 7aba63d commit e4e3a0e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

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)