mirror of
https://github.com/nzp-team/vhlt.git
synced 2024-11-24 21:02:22 +00:00
Add support for __TB_empty->NULL redirection
This commit is contained in:
parent
1464adf1de
commit
5d942db61d
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue