Skip to content

Commit

Permalink
server: track configstring updates for CS_CONNECTED clients
Browse files Browse the repository at this point in the history
  • Loading branch information
ec- committed Aug 29, 2024
1 parent 959876a commit b6e7ce4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/server/sv_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ void SV_SetConfigstring (int index, const char *val) {
// send the data to all relevant clients
for (i = 0, client = svs.clients; i < sv.maxclients; i++, client++) {
if ( client->state < CS_ACTIVE ) {
if ( client->state == CS_PRIMED )
client->csUpdated[ index ] = qtrue;
if ( client->state == CS_PRIMED || client->state == CS_CONNECTED ) {
// track CS_CONNECTED clients as well to optimize gamestate acknowledge after downloading/retransmission
client->csUpdated[index] = qtrue;
}
continue;
}
// do not always send server info to all clients
Expand Down

0 comments on commit b6e7ce4

Please sign in to comment.