mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-02 00:42:08 +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_mustmarkfloor = rw_mustmarkceiling = false;
|
||||||
rw_havehigh = rw_havelow = false;
|
rw_havehigh = rw_havelow = false;
|
||||||
|
|
||||||
bool is_portal = (line->linedef && line->linedef->special == Line_Mirror);
|
|
||||||
|
|
||||||
// Single sided line?
|
// Single sided line?
|
||||||
if (backsector == NULL)
|
if (backsector == NULL)
|
||||||
{
|
{
|
||||||
|
@ -656,7 +654,7 @@ void R_AddLine (seg_t *line)
|
||||||
// Window.
|
// Window.
|
||||||
solid = false;
|
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->lightlevel != frontsector->lightlevel
|
||||||
|| backsector->GetTexture(sector_t::floor) != frontsector->GetTexture(sector_t::floor)
|
|| backsector->GetTexture(sector_t::floor) != frontsector->GetTexture(sector_t::floor)
|
||||||
|
|
Loading…
Reference in a new issue