engine: client: respect cl_allow_download and cl_download_ingame for legacy servers

This commit is contained in:
Alibek Omarov 2023-10-15 04:01:45 +03:00
parent a19fb82d66
commit 5501ca927a
1 changed files with 11 additions and 1 deletions

View File

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