engine: client: respect cl_allow_download and cl_download_ingame for legacy servers
This commit is contained in:
parent
a19fb82d66
commit
5501ca927a
1 changed files with 11 additions and 1 deletions
|
@ -265,8 +265,18 @@ void CL_LegacyParseResourceList( sizebuf_t *msg )
|
||||||
}
|
}
|
||||||
|
|
||||||
if( CL_IsPlaybackDemo() )
|
if( CL_IsPlaybackDemo() )
|
||||||
{
|
|
||||||
return;
|
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();
|
HTTP_ResetProcessState();
|
||||||
|
|
Loading…
Add table
Reference in a new issue