mirror of
https://github.com/nzp-team/vhlt.git
synced 2024-11-21 19:32:27 +00:00
Guard __TB_empty behind ZHLT_TRENCHBROOMNULL_FIX
This commit is contained in:
parent
5d942db61d
commit
0ba7b25090
1 changed files with 2 additions and 0 deletions
|
@ -1996,12 +1996,14 @@ char* GetTextureByNumber(int texturenumber)
|
||||||
ofs = ((dmiptexlump_t*)g_dtexdata)->dataofs[info->miptex];
|
ofs = ((dmiptexlump_t*)g_dtexdata)->dataofs[info->miptex];
|
||||||
miptex = (miptex_t*)(&g_dtexdata[ofs]);
|
miptex = (miptex_t*)(&g_dtexdata[ofs]);
|
||||||
|
|
||||||
|
#ifdef ZHLT_TRENCHBROOMNULL_FIX
|
||||||
// cypress -- hacked-in support for __TB_empty
|
// cypress -- hacked-in support for __TB_empty
|
||||||
// just sorta replacing __TB_empty with null here, because
|
// just sorta replacing __TB_empty with null here, because
|
||||||
// ericw-tools does the same thing, and this is the best
|
// ericw-tools does the same thing, and this is the best
|
||||||
// place to do it with the least amount of work required.
|
// place to do it with the least amount of work required.
|
||||||
if (!strncasecmp(miptex->name, "__TB_empty", 10))
|
if (!strncasecmp(miptex->name, "__TB_empty", 10))
|
||||||
return "null";
|
return "null";
|
||||||
|
#endif
|
||||||
|
|
||||||
return miptex->name;
|
return miptex->name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue