From ccb49ba6e0dd9a063d0219fabf8fa66a119270b1 Mon Sep 17 00:00:00 2001
From: elexis <elexis1@users.noreply.github.com>
Date: Sat, 26 Nov 2016 02:20:11 +0100
Subject: [PATCH 2/2] Send player assignment updates to rejoining clients, as
they otherwise miss the playerdata of clients who started rejoining before
the local client finished the rejoin. Fixes #4036.
---
source/network/NetServer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/network/NetServer.cpp b/source/network/NetServer.cpp
index e3fc12c..66723d8 100644
a
|
b
|
void CNetServerWorker::SendPlayerAssignments()
|
849 | 849 | { |
850 | 850 | CPlayerAssignmentMessage message; |
851 | 851 | ConstructPlayerAssignmentMessage(message); |
852 | | Broadcast(&message, { NSS_PREGAME, NSS_INGAME }); |
| 852 | Broadcast(&message, { NSS_PREGAME, NSS_JOIN_SYNCING, NSS_INGAME }); |
853 | 853 | } |
854 | 854 | |
855 | 855 | ScriptInterface& CNetServerWorker::GetScriptInterface() |