Browse Source

engine: fix build

pull/2/head
Alibek Omarov 5 years ago
parent
commit
d382f6886d
  1. 2
      engine/common/dedicated.c
  2. 8
      engine/server/sv_game.c

2
engine/common/dedicated.c

@ -200,7 +200,7 @@ void Host_ClientFrame( void )
void Host_InputFrame( void ) void Host_InputFrame( void )
{ {
Cbuf_Execute( void ); Cbuf_Execute( );
} }
void VID_InitDefaultResolution( void ) void VID_InitDefaultResolution( void )

8
engine/server/sv_game.c

@ -3171,14 +3171,18 @@ use -str64dup to disable deduplication, -str64alloc to set array size
string_t GAME_EXPORT SV_AllocString( const char *szValue ) string_t GAME_EXPORT SV_AllocString( const char *szValue )
{ {
const char *newString = NULL; const char *newString = NULL;
int cmp;
if( svgame.physFuncs.pfnAllocString != NULL ) if( svgame.physFuncs.pfnAllocString != NULL )
return svgame.physFuncs.pfnAllocString( szValue ); return svgame.physFuncs.pfnAllocString( szValue );
#ifdef XASH_64BIT #ifdef XASH_64BIT
int cmp = 1; cmp = 1;
if( !str64.allowdup ) if( !str64.allowdup )
for( newString = str64.poldstringbase + 1; newString < str64.plast && ( cmp = Q_strcmp( newString, szValue ) ); newString += Q_strlen( newString ) + 1 ); for( newString = str64.poldstringbase + 1;
newString < str64.plast && ( cmp = Q_strcmp( newString, szValue ) );
newString += Q_strlen( newString ) + 1 );
if( cmp ) if( cmp )
{ {

Loading…
Cancel
Save