Extend undefinetile to also remove voxels, hightile (including skyboxes) and models.

git-svn-id: https://svn.eduke32.com/eduke32@5915 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-10-25 05:43:53 +00:00
parent b74c0abd8d
commit 67d84df899

View file

@ -214,6 +214,15 @@ void E_UndefineTile(int32_t const tile)
faketile[tile>>3] &= ~pow2char[tile&7];
Bmemset(&picanm[tile], 0, sizeof(picanm_t));
vox_undefine(tile);
#ifdef USE_OPENGL
for (ssize_t i=MAXPALOOKUPS-1; i>=0; --i)
hicclearsubst(tile, i);
md_undefinetile(tile);
#endif
}
static void set_picsiz(int32_t picnum)