From b6e7ce4f78711e1c9d2924044a9a9d8a9db7020f Mon Sep 17 00:00:00 2001 From: Eugene Date: Thu, 29 Aug 2024 21:37:49 +0300 Subject: [PATCH] server: track configstring updates for CS_CONNECTED clients --- code/server/sv_init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/server/sv_init.c b/code/server/sv_init.c index f201f9b78..fa222f547 100644 --- a/code/server/sv_init.c +++ b/code/server/sv_init.c @@ -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