mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- fixed: Lines with both sides in the same sector but an active portal may not be discarded early.
This commit is contained in:
parent
196986ae6b
commit
b3b5cb2fa4
1 changed files with 8 additions and 5 deletions
|
@ -139,6 +139,8 @@ static void AddLine (seg_t *seg, bool portalclip)
|
||||||
else if (!ispoly) // Two-sided polyobjects never obstruct the view
|
else if (!ispoly) // Two-sided polyobjects never obstruct the view
|
||||||
{
|
{
|
||||||
if (currentsector->sectornum == seg->backsector->sectornum)
|
if (currentsector->sectornum == seg->backsector->sectornum)
|
||||||
|
{
|
||||||
|
if (!seg->linedef->isVisualPortal())
|
||||||
{
|
{
|
||||||
FTexture * tex = TexMan(seg->sidedef->GetTexture(side_t::mid));
|
FTexture * tex = TexMan(seg->sidedef->GetTexture(side_t::mid));
|
||||||
if (!tex || tex->UseType==FTexture::TEX_Null)
|
if (!tex || tex->UseType==FTexture::TEX_Null)
|
||||||
|
@ -147,6 +149,7 @@ static void AddLine (seg_t *seg, bool portalclip)
|
||||||
seg->linedef->validcount=validcount;
|
seg->linedef->validcount=validcount;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
backsector=currentsector;
|
backsector=currentsector;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue