From 372514151d04e2a02268a546a781f3d8f4a5e0ab Mon Sep 17 00:00:00 2001 From: Jonathan Poncelet Date: Sun, 9 Apr 2023 21:59:30 +0100 Subject: [PATCH] engine: common: mod_bmodel: Fixed default texture name check REF_DEFAULT_TEXTURE defines the canonical name, so is used instead of a string literal. --- engine/common/mod_bmodel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/mod_bmodel.c b/engine/common/mod_bmodel.c index 9738e346..a10bc63a 100644 --- a/engine/common/mod_bmodel.c +++ b/engine/common/mod_bmodel.c @@ -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( ))