Skip to content

Commit

Permalink
Merge pull request #284 from Chomenor/download_cs_connected
Browse files Browse the repository at this point in the history
Set client state to CS_CONNECTED during UDP downloads
  • Loading branch information
ec- authored May 29, 2024
2 parents ceaa373 + 3bad6ca commit 266d270
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/server/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,9 @@ static int SV_WriteDownloadToClient( client_t *cl )
Com_Printf( "clientDownload: %d : beginning \"%s\"\n", (int) (cl - svs.clients), cl->downloadName );

// Init
SV_PrintClientStateChange( cl, CS_CONNECTED );
cl->state = CS_CONNECTED;

cl->downloadCurrentBlock = cl->downloadClientBlock = cl->downloadXmitBlock = 0;
cl->downloadCount = 0;
cl->downloadEOF = qfalse;
Expand Down

0 comments on commit 266d270

Please sign in to comment.