From a75666a3cd27c30fd660e600555d1e20b87f4062 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 14 Jan 2025 13:09:18 +0300 Subject: [PATCH] engine: common: fix dedicated build by defining SV_GetMaxClients before CL_GetMaxClients stub (that redirects to it) Also remove CL_Shutdown from dedicated stub lists. --- engine/common/common.h | 3 ++- engine/common/dedicated.c | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/engine/common/common.h b/engine/common/common.h index 7b81ddaf..630c28a3 100644 --- a/engine/common/common.h +++ b/engine/common/common.h @@ -711,6 +711,8 @@ typedef enum connprotocol_e struct physent_s; struct sv_client_s; typedef struct sizebuf_s sizebuf_t; +int SV_GetMaxClients( void ); + #if !XASH_DEDICATED qboolean CL_Initialized( void ); qboolean CL_IsInGame( void ); @@ -753,7 +755,6 @@ void SV_DrawDebugTriangles( void ); void SV_DrawOrthoTriangles( void ); double CL_GetDemoFramerate( void ); void CL_StopPlayback( void ); -int SV_GetMaxClients( void ); qboolean SV_Initialized( void ); void CL_ProcessFile( qboolean successfully_received, const char *filename ); int SV_GetSaveComment( const char *savename, char *comment ); diff --git a/engine/common/dedicated.c b/engine/common/dedicated.c index a9b82b80..b3d894a6 100644 --- a/engine/common/dedicated.c +++ b/engine/common/dedicated.c @@ -113,11 +113,6 @@ void CL_Disconnect( void ) } -void CL_Shutdown( void ) -{ - -} - void R_ClearStaticEntities( void ) {