Skip to content

Commit

Permalink
engine: fix XASH_DEDICATED check
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Jul 10, 2024
1 parent 31c20ac commit 708c691
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/common/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void Host_ValidateEngineFeatures( uint32_t features )
{
uint32_t mask = ENGINE_FEATURES_MASK;

#if !HOST_DEDICATED
#if !XASH_DEDICATED
if( !Host_IsDedicated( ) && cls.legacymode )
mask = ENGINE_LEGACY_FEATURES_MASK;
#endif
Expand Down Expand Up @@ -325,7 +325,7 @@ Host_CalcSleep
*/
static int Host_CalcSleep( void )
{
if( Host_IsDedicated() )
if( Host_IsDedicated( ))
{
// let the dedicated server some sleep
return host_sleeptime.value;
Expand Down Expand Up @@ -1184,7 +1184,7 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa
ID_Init();
SoundList_Init();

if( Host_IsDedicated() )
if( Host_IsDedicated( ))
{
#ifdef _WIN32
Wcon_InitConsoleCommands ();
Expand Down

0 comments on commit 708c691

Please sign in to comment.