- that portal check was not correct.

This commit is contained in:
Christoph Oelckers 2016-03-10 15:15:37 +01:00
parent 7134f53638
commit 95d36670cf

View file

@ -595,7 +595,7 @@ void ADynamicLight::CollectWithinRadius(const fixedvec3 &pos, subsector_t *subSe
} }
} }
} }
if (subSec->sector->PortalIsLinked(sector_t::ceiling)) if (!subSec->sector->PortalBlocksSight(sector_t::ceiling))
{ {
line_t *other = subSec->firstline->linedef; line_t *other = subSec->firstline->linedef;
AActor *sb = subSec->sector->SkyBoxes[sector_t::ceiling]; AActor *sb = subSec->sector->SkyBoxes[sector_t::ceiling];
@ -606,7 +606,7 @@ void ADynamicLight::CollectWithinRadius(const fixedvec3 &pos, subsector_t *subSe
if (othersub->validcount != ::validcount) CollectWithinRadius(PosRelative(othersub->sector), othersub, radius); if (othersub->validcount != ::validcount) CollectWithinRadius(PosRelative(othersub->sector), othersub, radius);
} }
} }
if (subSec->sector->PortalIsLinked(sector_t::floor)) if (!subSec->sector->PortalBlocksSight(sector_t::floor))
{ {
line_t *other = subSec->firstline->linedef; line_t *other = subSec->firstline->linedef;
AActor *sb = subSec->sector->SkyBoxes[sector_t::floor]; AActor *sb = subSec->sector->SkyBoxes[sector_t::floor];