mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
- that portal check was not correct.
This commit is contained in:
parent
7134f53638
commit
95d36670cf
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue