Remove call to SV_WriteDownloadToClient() when sending snapshots, as it's already called when sending download messages

This commit is contained in:
smallmodel 2024-12-24 18:41:20 +01:00
parent da5c35ec2b
commit cb1c3c0b1c
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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);