mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
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:
parent
6c9ce478a9
commit
372514151d
@ -2495,7 +2495,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
|
|||||||
if( !Q_strncmp( tex->name, "sky", 3 ))
|
if( !Q_strncmp( tex->name, "sky", 3 ))
|
||||||
SetBits( out->flags, SURF_DRAWSKY );
|
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 );
|
SetBits( out->flags, SURF_DRAWTURB );
|
||||||
|
|
||||||
if( !Host_IsQuakeCompatible( ))
|
if( !Host_IsQuakeCompatible( ))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user