engine: common: mod_bmodel: Fixed default texture name check

REF_DEFAULT_TEXTURE defines the canonical name, so is used
instead of a string literal.
This commit is contained in:
Jonathan Poncelet 2023-04-09 21:59:30 +01:00 committed by Alibek Omarov
parent 6c9ce478a9
commit 372514151d
1 changed files with 1 additions and 1 deletions

View File

@ -2495,7 +2495,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
if( !Q_strncmp( tex->name, "sky", 3 ))
SetBits( out->flags, SURF_DRAWSKY );
if(( tex->name[0] == '*' && Q_stricmp( tex->name, "*default" )) || tex->name[0] == '!' )
if(( tex->name[0] == '*' && Q_stricmp( tex->name, REF_DEFAULT_TEXTURE )) || tex->name[0] == '!' )
SetBits( out->flags, SURF_DRAWTURB );
if( !Host_IsQuakeCompatible( ))