From 14108f3be94900f728a11f104dbc7062f6a1dbe5 Mon Sep 17 00:00:00 2001 From: plagman Date: Tue, 14 Apr 2009 07:38:45 +0000 Subject: [PATCH] Don't parse closed sectors. git-svn-id: https://svn.eduke32.com/eduke32@1320 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 40b333709..6e588fb6c 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -1103,6 +1103,20 @@ static void polymer_displayrooms(int16_t dacursectnum) (wallvisible(sec->wallptr + i)) && (polymer_planeinfrustum(&prwalls[sec->wallptr + i]->mask, frustum))) { + if (prwalls[sec->wallptr + i]->mask.vertcount == 4) + { + _prwall *w; + + w = prwalls[sec->wallptr + i]; + + if ((w->mask.buffer[(0 * 5) + 1] >= w->mask.buffer[(3 * 5) + 1]) && + (w->mask.buffer[(1 * 5) + 1] >= w->mask.buffer[(2 * 5) + 1])) + { + i++; + continue; + } + } + if (wall[sec->wallptr + i].cstat & 48) localmaskwall[localmaskwallcnt++] = sec->wallptr + i;