Don't propagate light through sealed portals.

git-svn-id: https://svn.eduke32.com/eduke32@1318 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-04-14 07:01:55 +00:00
parent 8cd5bb68d0
commit dfd2a379b1

View file

@ -3865,6 +3865,14 @@ static inline void polymer_culllight(char lightindex)
light->isinview = 1;
}
if (polymer_planeinlight(&w->mask, light)) {
if ((w->mask.vertcount == 4) &&
(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;
}
w->mask.lights[w->mask.lightcount] = lightindex;
w->mask.lightcount++;
if (w->mask.drawn)