Add support for __TB_empty->NULL redirection

This commit is contained in:
MotoLegacy 2024-03-04 17:32:51 -05:00
parent 1464adf1de
commit 5d942db61d
2 changed files with 8 additions and 0 deletions

View file

@ -1996,6 +1996,13 @@ char* GetTextureByNumber(int texturenumber)
ofs = ((dmiptexlump_t*)g_dtexdata)->dataofs[info->miptex];
miptex = (miptex_t*)(&g_dtexdata[ofs]);
// cypress -- hacked-in support for __TB_empty
// just sorta replacing __TB_empty with null here, because
// ericw-tools does the same thing, and this is the best
// place to do it with the least amount of work required.
if (!strncasecmp(miptex->name, "__TB_empty", 10))
return "null";
return miptex->name;
}

View file

@ -93,6 +93,7 @@
#define ZHLT_EMBEDLIGHTMAP // this feature requires HLRAD_TEXTURE and RIPENT_TEXTURE //--vluzacn
#endif
//#define ZHLT_HIDDENSOUNDTEXTURE //--vluzacn
#define ZHLT_TRENCHBROOMNULL_FIX //--cypress
#define COMMON_HULLU // winding optimisations by hullu