From 1c2026c05540ed97bcc631aafe2aa37aa0ff6c35 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 20 Jan 2020 18:38:50 +0000 Subject: [PATCH] Fix wastes builds. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5606 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/com_mesh.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engine/common/com_mesh.c b/engine/common/com_mesh.c index 77a189650..bdf087622 100644 --- a/engine/common/com_mesh.c +++ b/engine/common/com_mesh.c @@ -3072,12 +3072,13 @@ void Mod_LoadAliasShaders(model_t *mod) char alttexpath[MAX_QPATH]; uploadfmt_t skintranstype; char *slash; +#ifdef MD1MODELS #ifdef HEXEN2 - if( mod->flags & MFH2_TRANSPARENT ) + if (mod->flags & MFH2_TRANSPARENT) skintranstype = TF_H2_T7G1; //hexen2 else #endif - if(mod->flags & MFH2_HOLEY) + if (mod->flags & MFH2_HOLEY) { //in hexen2, the official value is 0. //hexen2's GL renderer ONLY also has a bug that ADDITIONALLY translates index 255. this is the 'normal' behaviour. @@ -3085,10 +3086,11 @@ void Mod_LoadAliasShaders(model_t *mod) skintranstype = mod_h2holey_bugged.ival?TF_TRANS8:TF_H2_TRANS8_0; //hexen2 } #ifdef HEXEN2 - else if(mod->flags & MFH2_SPECIAL_TRANS) + else if (mod->flags & MFH2_SPECIAL_TRANS) skintranstype = TF_H2_T4A4; //hexen2 #endif else +#endif skintranstype = TF_SOLID8; COM_FileBase(mod->name, basename, sizeof(basename));