mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
Fixed portal detection in R_AddLine
This commit is contained in:
parent
78ea00be59
commit
b066b0891a
1 changed files with 1 additions and 3 deletions
|
@ -588,8 +588,6 @@ void R_AddLine (seg_t *line)
|
|||
rw_mustmarkfloor = rw_mustmarkceiling = false;
|
||||
rw_havehigh = rw_havelow = false;
|
||||
|
||||
bool is_portal = (line->linedef && line->linedef->special == Line_Mirror);
|
||||
|
||||
// Single sided line?
|
||||
if (backsector == NULL)
|
||||
{
|
||||
|
@ -656,7 +654,7 @@ void R_AddLine (seg_t *line)
|
|||
// Window.
|
||||
solid = false;
|
||||
}
|
||||
else if (is_portal
|
||||
else if (line->linedef->portal // [ZZ] portals are always drawn, even if there's exactly same sector on both sides
|
||||
|
||||
|| backsector->lightlevel != frontsector->lightlevel
|
||||
|| backsector->GetTexture(sector_t::floor) != frontsector->GetTexture(sector_t::floor)
|
||||
|
|
Loading…
Reference in a new issue