mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 05:41:46 +08:00
engine: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty
This commit is contained in:
@@ -437,7 +437,7 @@ static delta_info_t *Delta_FindStruct( const char *name )
|
||||
{
|
||||
int i;
|
||||
|
||||
if( !COM_CheckString( name ))
|
||||
if( COM_StringEmptyOrNULL( name ))
|
||||
return NULL;
|
||||
|
||||
for( i = 0; i < ARRAYSIZE( dt_info ); i++ )
|
||||
@@ -466,7 +466,7 @@ static delta_info_t *Delta_FindStructByEncoder( const char *encoderName )
|
||||
{
|
||||
int i;
|
||||
|
||||
if( !COM_CheckString( encoderName ) )
|
||||
if( COM_StringEmptyOrNULL( encoderName ) )
|
||||
return NULL;
|
||||
|
||||
for( i = 0; i < ARRAYSIZE( dt_info ); i++ )
|
||||
@@ -596,7 +596,7 @@ static void Delta_WriteTableField( sizebuf_t *msg, int tableIndex, const delta_t
|
||||
|
||||
Assert( pField != NULL );
|
||||
|
||||
if( !COM_CheckString( pField->name ))
|
||||
if( COM_StringEmptyOrNULL( pField->name ))
|
||||
return;// not initialized ?
|
||||
|
||||
dt = Delta_FindStructByIndex( tableIndex );
|
||||
|
||||
Reference in New Issue
Block a user