- fixed: Lines with both sides in the same sector but an active portal may not be discarded early.

This commit is contained in:
Christoph Oelckers 2016-11-17 23:13:17 +01:00
parent 196986ae6b
commit b3b5cb2fa4

View file

@ -140,12 +140,15 @@ static void AddLine (seg_t *seg, bool portalclip)
{ {
if (currentsector->sectornum == seg->backsector->sectornum) if (currentsector->sectornum == seg->backsector->sectornum)
{ {
FTexture * tex = TexMan(seg->sidedef->GetTexture(side_t::mid)); if (!seg->linedef->isVisualPortal())
if (!tex || tex->UseType==FTexture::TEX_Null)
{ {
// nothing to do here! FTexture * tex = TexMan(seg->sidedef->GetTexture(side_t::mid));
seg->linedef->validcount=validcount; if (!tex || tex->UseType==FTexture::TEX_Null)
return; {
// nothing to do here!
seg->linedef->validcount=validcount;
return;
}
} }
backsector=currentsector; backsector=currentsector;
} }