From 5501ca927ac69ddce5c11929c495c96a9f1dbad4 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 15 Oct 2023 04:01:45 +0300 Subject: [PATCH] engine: client: respect cl_allow_download and cl_download_ingame for legacy servers --- engine/client/cl_parse_48.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_parse_48.c b/engine/client/cl_parse_48.c index cd30a123..253994b7 100644 --- a/engine/client/cl_parse_48.c +++ b/engine/client/cl_parse_48.c @@ -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();