Browse Source

engine: common: mod_bmodel: Fixed default texture name check

REF_DEFAULT_TEXTURE defines the canonical name, so is used
instead of a string literal.
pull/2/head
Jonathan Poncelet 1 year ago committed by Alibek Omarov
parent
commit
372514151d
  1. 2
      engine/common/mod_bmodel.c

2
engine/common/mod_bmodel.c

@ -2495,7 +2495,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod ) @@ -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( ))

Loading…
Cancel
Save