Skip to content

Commit

Permalink
Remove extra MSG_WriteByte call in SV_WriteDownloadToClient
Browse files Browse the repository at this point in the history
Don't do this twice, it's already done in SV_Netchan_Transmit
  • Loading branch information
Aciz committed Nov 12, 2023
1 parent 5f183a6 commit f183c88
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/server/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,6 @@ static int SV_WriteDownloadToClient( client_t *cl )
if ( cl->downloadBlockSize[curindex] > 0 )
MSG_WriteData( &msg, cl->downloadBlocks[curindex], cl->downloadBlockSize[curindex] );

MSG_WriteByte( &msg, svc_EOF );
SV_Netchan_Transmit( cl, &msg );

Com_DPrintf( "clientDownload: %d : writing block %d\n", (int) (cl - svs.clients), cl->downloadXmitBlock );
Expand Down

0 comments on commit f183c88

Please sign in to comment.