Browse Source

engine: client: respect cl_allow_download and cl_download_ingame for legacy servers

pull/2/head
Alibek Omarov 1 year ago
parent
commit
5501ca927a
  1. 12
      engine/client/cl_parse_48.c

12
engine/client/cl_parse_48.c

@ -265,8 +265,18 @@ void CL_LegacyParseResourceList( sizebuf_t *msg ) @@ -265,8 +265,18 @@ void CL_LegacyParseResourceList( sizebuf_t *msg )
}
if( CL_IsPlaybackDemo() )
{
return;
if( !cl_allow_download.value )
{
Con_DPrintf( "Refusing new resource, cl_allow_download set to 0\n" );
reslist.rescount = 0;
}
if( cls.state == ca_active && !cl_download_ingame.value )
{
Con_DPrintf( "Refusing new resource, cl_download_ingame set to 0\n" );
reslist.rescount = 0;
}
HTTP_ResetProcessState();

Loading…
Cancel
Save