From cb1c3c0b1c5ac91f26c4cdf59ecb5ea639718480 Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:41:20 +0100 Subject: [PATCH] Remove call to SV_WriteDownloadToClient() when sending snapshots, as it's already called when sending download messages --- code/server/sv_snapshot.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/code/server/sv_snapshot.c b/code/server/sv_snapshot.c index bd393116..d87c689e 100644 --- a/code/server/sv_snapshot.c +++ b/code/server/sv_snapshot.c @@ -1242,8 +1242,9 @@ void SV_SendClientSnapshot( client_t *client ) { // su44: write any pending MoHAA cg messages SV_WriteCGMToClient( client, &msg ); - // Add any download data if the client is downloading - SV_WriteDownloadToClient( client, &msg ); +#ifdef USE_VOIP + SV_WriteVoipToClient(client, &msg); +#endif } else { // Fixed in 2.0 // Don't send snapshots until the player has acknowledged the server id (which happens when the client enters the world). @@ -1251,10 +1252,6 @@ void SV_SendClientSnapshot( client_t *client ) { MSG_WriteSVC(&msg, svc_nop); } -#ifdef USE_VOIP - SV_WriteVoipToClient( client, &msg ); -#endif - // check for overflow if ( msg.overflowed ) { Com_Printf ("WARNING: msg overflowed for %s\n", client->name);