mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 09:56:22 +01:00
engine: net_http: fix build with dedicated server
This commit is contained in:
parent
8a2a7d1180
commit
4342689e73
@ -534,8 +534,8 @@ remove files with HTTP_FREE state from list
|
|||||||
static void HTTP_AutoClean( void )
|
static void HTTP_AutoClean( void )
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
sizebuf_t msg;
|
|
||||||
httpfile_t *cur, **prev = &http.first_file;
|
httpfile_t *cur, **prev = &http.first_file;
|
||||||
|
sizebuf_t msg;
|
||||||
|
|
||||||
MSG_Init( &msg, "DlFile", buf, sizeof( buf ));
|
MSG_Init( &msg, "DlFile", buf, sizeof( buf ));
|
||||||
|
|
||||||
@ -574,12 +574,14 @@ static void HTTP_AutoClean( void )
|
|||||||
Mem_Free( cur );
|
Mem_Free( cur );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !XASH_DEDICATED
|
||||||
if( MSG_GetNumBytesWritten( &msg ) > 0 )
|
if( MSG_GetNumBytesWritten( &msg ) > 0 )
|
||||||
{
|
{
|
||||||
// it's expected to be on fragments channel
|
// it's expected to be on fragments channel
|
||||||
Netchan_CreateFragments( &cls.netchan, &msg );
|
Netchan_CreateFragments( &cls.netchan, &msg );
|
||||||
Netchan_FragSend( &cls.netchan );
|
Netchan_FragSend( &cls.netchan );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int HTTP_FileSaveReceivedData( httpfile_t *file, int pos, int length )
|
static int HTTP_FileSaveReceivedData( httpfile_t *file, int pos, int length )
|
||||||
|
Loading…
Reference in New Issue
Block a user