From 57510eab0ecf4924a6c99b626f7b99ac6c600513 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 6 Jan 2018 01:29:31 -0700 Subject: [PATCH] qbsp: remove hint/skip texinfo clearing hack. Fixes https://github.com/ericwa/ericw-tools/issues/196 This should be by stripping unreferenced texinfo at the end of compiling --- qbsp/map.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/qbsp/map.cc b/qbsp/map.cc index 0070b6eb..56b6c517 100644 --- a/qbsp/map.cc +++ b/qbsp/map.cc @@ -242,14 +242,7 @@ FindTexinfo(mtexinfo_t *texinfo, uint64_t flags) /* Set the texture flags */ texinfo->flags = flags; texinfo->outputnum = -1; - - /* Don't worry about texture alignment on skip or hint surfaces */ - if (texinfo->flags & (TEX_SKIP | TEX_HINT)) { - for (int i=0; i<2; i++) - for (int j=0; j<4; j++) - texinfo->vecs[i][j] = 0.0f; - } - + // check for an exact match in the reverse lookup const auto it = map.mtexinfo_lookup.find(*texinfo); if (it != map.mtexinfo_lookup.end()) {