Ticket #4036: 0002-Send-player-assignment-updates-to-rejoining-clients-.patch

File 0002-Send-player-assignment-updates-to-rejoining-clients-.patch, 971 bytes (added by elexis, 7 years ago)

Fixes the actual bug.

  • source/network/NetServer.cpp

    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()  
    849849{
    850850    CPlayerAssignmentMessage message;
    851851    ConstructPlayerAssignmentMessage(message);
    852     Broadcast(&message, { NSS_PREGAME, NSS_INGAME });
     852    Broadcast(&message, { NSS_PREGAME, NSS_JOIN_SYNCING, NSS_INGAME });
    853853}
    854854
    855855ScriptInterface& CNetServerWorker::GetScriptInterface()