diff --git a/src/gl/dynlights/a_dynlight.cpp b/src/gl/dynlights/a_dynlight.cpp index e7d41aa22..d1b71a38d 100644 --- a/src/gl/dynlights/a_dynlight.cpp +++ b/src/gl/dynlights/a_dynlight.cpp @@ -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; 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 (subSec->sector->PortalIsLinked(sector_t::floor)) + if (!subSec->sector->PortalBlocksSight(sector_t::floor)) { line_t *other = subSec->firstline->linedef; AActor *sb = subSec->sector->SkyBoxes[sector_t::floor];