Skip to content

Commit

Permalink
engine: common: fix dedicated build by defining SV_GetMaxClients befo…
Browse files Browse the repository at this point in the history
…re CL_GetMaxClients stub (that redirects to it)

Also remove CL_Shutdown from dedicated stub lists.
  • Loading branch information
a1batross committed Jan 14, 2025
1 parent 4942672 commit a75666a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion engine/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down
5 changes: 0 additions & 5 deletions engine/common/dedicated.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ void CL_Disconnect( void )

}

void CL_Shutdown( void )
{

}

void R_ClearStaticEntities( void )
{

Expand Down

0 comments on commit a75666a

Please sign in to comment.