mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Remove call to SV_WriteDownloadToClient() when sending snapshots, as it's already called when sending download messages
This commit is contained in:
parent
da5c35ec2b
commit
cb1c3c0b1c
1 changed files with 3 additions and 6 deletions
|
@ -1242,8 +1242,9 @@ void SV_SendClientSnapshot( client_t *client ) {
|
||||||
// su44: write any pending MoHAA cg messages
|
// su44: write any pending MoHAA cg messages
|
||||||
SV_WriteCGMToClient( client, &msg );
|
SV_WriteCGMToClient( client, &msg );
|
||||||
|
|
||||||
// Add any download data if the client is downloading
|
#ifdef USE_VOIP
|
||||||
SV_WriteDownloadToClient( client, &msg );
|
SV_WriteVoipToClient(client, &msg);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
// Fixed in 2.0
|
// Fixed in 2.0
|
||||||
// Don't send snapshots until the player has acknowledged the server id (which happens when the client enters the world).
|
// 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);
|
MSG_WriteSVC(&msg, svc_nop);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_VOIP
|
|
||||||
SV_WriteVoipToClient( client, &msg );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// check for overflow
|
// check for overflow
|
||||||
if ( msg.overflowed ) {
|
if ( msg.overflowed ) {
|
||||||
Com_Printf ("WARNING: msg overflowed for %s\n", client->name);
|
Com_Printf ("WARNING: msg overflowed for %s\n", client->name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue