Don't parse closed sectors.

git-svn-id: https://svn.eduke32.com/eduke32@1320 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-04-14 07:38:45 +00:00
parent cc701a3908
commit 14108f3be9

View file

@ -1103,6 +1103,20 @@ static void polymer_displayrooms(int16_t dacursectnum)
(wallvisible(sec->wallptr + i)) && (wallvisible(sec->wallptr + i)) &&
(polymer_planeinfrustum(&prwalls[sec->wallptr + i]->mask, frustum))) (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) if (wall[sec->wallptr + i].cstat & 48)
localmaskwall[localmaskwallcnt++] = sec->wallptr + i; localmaskwall[localmaskwallcnt++] = sec->wallptr + i;