The Broadcast function of the NetServer sends to all clients that are in the gamesetup or ingame state, avoiding those in the loading screen, resulting in missing player-assignment updates when another client starts a rejoin while the current client is generating the map.
The first proposed patch extends the Broadcast function by an argument specifying the addressed client states.
The second diff solves the reported defect by accounting for clients in the loading state when refreshing the player assignments.