From 67d84df8991b5d5673add5ac4ecfaa879ba5113e Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 25 Oct 2016 05:43:53 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/tiles.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polymer/eduke32/build/src/tiles.c b/polymer/eduke32/build/src/tiles.c index 45cedbf13..243eb1931 100644 --- a/polymer/eduke32/build/src/tiles.c +++ b/polymer/eduke32/build/src/tiles.c @@ -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)