Skip to content

Commit

Permalink
Merge pull request #313 from Chomenor/download_active_check
Browse files Browse the repository at this point in the history
Server: don't allow active clients to start downloads
  • Loading branch information
ec- authored Jan 11, 2025
2 parents f5b387e + 3c9f9d3 commit 4b6c96e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/server/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,8 @@ SV_BeginDownload_f
==================
*/
static void SV_BeginDownload_f( client_t *cl ) {
if ( cl->state == CS_ACTIVE )
return;

// Kill any existing download
SV_CloseDownload( cl );
Expand Down

0 comments on commit 4b6c96e

Please sign in to comment.