Skip to content

Commit

Permalink
SV_ParseResourceList: Do not uploading according to sv_allowupload cvar
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Mar 18, 2024
1 parent 516bb93 commit 59ed3f6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rehlds/engine/sv_upld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 59ed3f6

Please sign in to comment.