Browse Source

engine: dedicated: fix build

pull/2/head
Alibek Omarov 6 years ago
parent
commit
ef39f9c9cf
  1. 4
      engine/common/con_utils.c
  2. 9
      engine/common/dedicated.c
  3. 3
      engine/common/host_state.c
  4. 2
      engine/common/mod_bmodel.c
  5. 2
      engine/common/system.c

4
engine/common/con_utils.c

@ -1256,7 +1256,6 @@ void Host_WriteConfig( void ) @@ -1256,7 +1256,6 @@ void Host_WriteConfig( void )
NET_SaveMasters();
}
#endif
/*
===============
@ -1325,7 +1324,7 @@ void Host_WriteOpenGLConfig( void ) @@ -1325,7 +1324,7 @@ void Host_WriteOpenGLConfig( void )
FS_Printf( f, "\n" );
Cmd_WriteOpenGLVariables( f );
CFG_END( f, "opengl.cfg" );
}
}
else Con_DPrintf( S_ERROR "can't update opengl.cfg.\n" );
}
@ -1356,6 +1355,7 @@ void Host_WriteVideoConfig( void ) @@ -1356,6 +1355,7 @@ void Host_WriteVideoConfig( void )
}
else Con_DPrintf( S_ERROR "can't update video.cfg.\n" );
}
#endif // XASH_DEDICATED
void Key_EnumCmds_f( void )
{

9
engine/common/dedicated.c

@ -304,9 +304,14 @@ void SCR_CheckStartupVids() @@ -304,9 +304,14 @@ void SCR_CheckStartupVids()
}
imgfilter_t *R_FindTexFilter( const char *texname )
void Sys_SetClipboardData( const byte *text, size_t size )
{
return NULL;
}
void CL_StopPlayback( void )
{
}
#include "sprite.h"

3
engine/common/host_state.c

@ -135,7 +135,10 @@ void Host_ShutdownGame( void ) @@ -135,7 +135,10 @@ void Host_ShutdownGame( void )
void Host_RunFrame( float time )
{
// at this time, we don't need to get events from OS on dedicated
#ifndef XASH_DEDICATED
Platform_RunEvents();
#endif // XASH_DEDICATED
// engine main frame
Host_Frame( time );

2
engine/common/mod_bmodel.c

@ -1033,8 +1033,10 @@ static void Mod_CalcSurfaceExtents( msurface_t *surf ) @@ -1033,8 +1033,10 @@ static void Mod_CalcSurfaceExtents( msurface_t *surf )
info->lightextents[i] = surf->extents[i];
}
#ifndef XASH_DEDICATED
if( !FBitSet( tex->flags, TEX_SPECIAL ) && ( surf->extents[i] > 16384 ) && ( tr.block_size == BLOCK_SIZE_DEFAULT ))
Con_Reportf( S_ERROR "Bad surface extents %i\n", surf->extents[i] );
#endif // XASH_DEDICATED
}
}

2
engine/common/system.c

@ -148,6 +148,7 @@ BOOL WINAPI IsDebuggerPresent(void); @@ -148,6 +148,7 @@ BOOL WINAPI IsDebuggerPresent(void);
#endif
#endif
#ifndef XASH_DEDICATED
/*
================
Sys_GetClipboardData
@ -177,6 +178,7 @@ void Sys_SetClipboardData( const byte *buffer, size_t size ) @@ -177,6 +178,7 @@ void Sys_SetClipboardData( const byte *buffer, size_t size )
{
Platform_SetClipboardText( (char *)buffer, size );
}
#endif // XASH_DEDICATED
/*
================

Loading…
Cancel
Save