From 59ed3f6867b1b3cba69cd7650887841da8e76d42 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Mon, 18 Mar 2024 22:04:02 +0700 Subject: [PATCH] SV_ParseResourceList: Do not uploading according to sv_allowupload cvar --- rehlds/engine/sv_upld.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rehlds/engine/sv_upld.cpp b/rehlds/engine/sv_upld.cpp index e28a0e3..82b8315 100644 --- a/rehlds/engine/sv_upld.cpp +++ b/rehlds/engine/sv_upld.cpp @@ -509,8 +509,13 @@ void SV_ParseResourceList(client_t *pSenderClient) } } - host_client->uploading = TRUE; - host_client->uploaddoneregistering = FALSE; +#ifdef REHLDS_FIXES + if (sv_allow_upload.value != 0.0f) +#endif //REHLDS_FIXES + { + host_client->uploading = TRUE; + host_client->uploaddoneregistering = FALSE; - SV_BatchUploadRequest(host_client); + SV_BatchUploadRequest(host_client); + } }