From 95d36670cf263c04ef528644f68872740fa31752 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 10 Mar 2016 15:15:37 +0100 Subject: [PATCH] - that portal check was not correct. --- src/gl/dynlights/a_dynlight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];