engine: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty

This commit is contained in:
Alibek Omarov
2026-02-21 00:03:56 +05:00
committed by a1batross
parent 3040552580
commit eacc35d9e1
21 changed files with 59 additions and 57 deletions

View File

@@ -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 );