engine: dedicated: fix build

This commit is contained in:
Alibek Omarov 2018-11-01 23:31:16 +03:00
parent a03aa3ddb3
commit ef39f9c9cf
5 changed files with 16 additions and 4 deletions

View File

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

View File

@ -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" #include "sprite.h"

View File

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

View File

@ -1033,8 +1033,10 @@ static void Mod_CalcSurfaceExtents( msurface_t *surf )
info->lightextents[i] = surf->extents[i]; 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 )) 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] ); Con_Reportf( S_ERROR "Bad surface extents %i\n", surf->extents[i] );
#endif // XASH_DEDICATED
} }
} }

View File

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