mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-07 12:50:38 +08:00
engine: client: restore reduced resend time for bandwidth test
This commit is contained in:
@@ -1250,6 +1250,7 @@ static void CL_CheckForResend( void )
|
||||
{
|
||||
netadr_t adr;
|
||||
net_gai_state_t res;
|
||||
float resend_time;
|
||||
|
||||
if( cls.internetservers_wait )
|
||||
{
|
||||
@@ -1283,7 +1284,12 @@ static void CL_CheckForResend( void )
|
||||
else if( cl_resend.value > CL_MAX_RESEND_TIME )
|
||||
Cvar_DirectSetValue( &cl_resend, CL_MAX_RESEND_TIME );
|
||||
|
||||
if(( host.realtime - cls.connect_time ) < cl_resend.value )
|
||||
if( cls.bandwidth_test.started && !cls.bandwidth_test.passed && !cls.bandwidth_test.failed )
|
||||
resend_time = 2.0f;
|
||||
else
|
||||
resend_time = cl_resend.value;
|
||||
|
||||
if(( host.realtime - cls.connect_time ) < resend_time )
|
||||
return;
|
||||
|
||||
res = NET_StringToAdrNB( cls.servername, &adr, false );
|
||||
|
||||
Reference in New Issue
Block a user