From 4342689e73b8d71092a64b9a7bb8921ae37d7721 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 12 Nov 2024 14:46:06 +0300 Subject: [PATCH] engine: net_http: fix build with dedicated server --- engine/common/net_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/common/net_http.c b/engine/common/net_http.c index f15abbd7..8fc7f5d3 100644 --- a/engine/common/net_http.c +++ b/engine/common/net_http.c @@ -534,8 +534,8 @@ remove files with HTTP_FREE state from list static void HTTP_AutoClean( void ) { char buf[1024]; - sizebuf_t msg; httpfile_t *cur, **prev = &http.first_file; + sizebuf_t msg; MSG_Init( &msg, "DlFile", buf, sizeof( buf )); @@ -574,12 +574,14 @@ static void HTTP_AutoClean( void ) Mem_Free( cur ); } +#if !XASH_DEDICATED if( MSG_GetNumBytesWritten( &msg ) > 0 ) { // it's expected to be on fragments channel Netchan_CreateFragments( &cls.netchan, &msg ); Netchan_FragSend( &cls.netchan ); } +#endif } static int HTTP_FileSaveReceivedData( httpfile_t *file, int pos, int length )