engine: client: don't immediately send client packet after receiveing server packet or full update

It doesn't seem to be useful for anything. Instead, it completely breaks cl_cmdrate behavior, constantly
spamming server with move commands
This commit is contained in:
Alibek Omarov 2024-10-30 18:11:45 +03:00
parent 0313e19674
commit c2ca80c889
4 changed files with 0 additions and 10 deletions

View file

@ -872,7 +872,6 @@ int CL_ParsePacketEntities( sizebuf_t *msg, qboolean delta, connprotocol_t proto
// this is a full update that we can start delta compressing from now // this is a full update that we can start delta compressing from now
oldframe = NULL; oldframe = NULL;
oldpacket = -1; // delta too old or is initial message oldpacket = -1; // delta too old or is initial message
cl.send_reply = true; // send reply
cls.demowaiting = false; // we can start recording now cls.demowaiting = false; // we can start recording now
} }

View file

@ -789,12 +789,6 @@ static void CL_WritePacket( void )
if(( host.realtime >= cls.nextcmdtime ) && Netchan_CanPacket( &cls.netchan, true )) if(( host.realtime >= cls.nextcmdtime ) && Netchan_CanPacket( &cls.netchan, true ))
send_command = true; send_command = true;
if( cl.send_reply )
{
cl.send_reply = false;
send_command = true;
}
// spectator is not sending cmds to server // spectator is not sending cmds to server
if( cls.spectator && cls.state == ca_active && cl.delta_sequence == cl.validsequence ) if( cls.spectator && cls.state == ca_active && cl.delta_sequence == cl.validsequence )
{ {
@ -2774,7 +2768,6 @@ static void CL_ReadNetMessage( void )
} }
CL_ParseNetMessage( &net_message, parsefn ); CL_ParseNetMessage( &net_message, parsefn );
cl.send_reply = true;
} }
// build list of all solid entities per next frame (exclude clients) // build list of all solid entities per next frame (exclude clients)

View file

@ -294,7 +294,6 @@ static int CL_ParsePacketEntitiesGS( sizebuf_t *msg, qboolean delta )
else else
{ {
oldframe = NULL; oldframe = NULL;
cl.send_reply = true;
cls.demowaiting = false; cls.demowaiting = false;
} }

View file

@ -211,7 +211,6 @@ typedef struct
int last_command_ack; int last_command_ack;
int last_incoming_sequence; int last_incoming_sequence;
qboolean send_reply;
qboolean background; // not real game, just a background qboolean background; // not real game, just a background
qboolean first_frame; // first rendering frame qboolean first_frame; // first rendering frame
qboolean proxy_redirect; // spectator stuff qboolean proxy_redirect; // spectator stuff