mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
Don't parse closed sectors.
git-svn-id: https://svn.eduke32.com/eduke32@1320 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
cc701a3908
commit
14108f3be9
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue