Skip to content

Commit

Permalink
Fix ML_DRAWFULLHEIGHT flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
Talon1024 authored and coelckers committed Jan 11, 2020
1 parent 7ca6e7e commit 2ff92e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendering/hwrenderer/scene/hw_walls.cpp
Expand Up @@ -2024,7 +2024,7 @@ void HWWall::Process(HWDrawInfo *di, seg_t *seg, sector_t * frontsector, sector_
if (frontsector->GetTexture(sector_t::floor) != skyflatnum || backsector->GetTexture(sector_t::floor) != skyflatnum)
{
// the back sector's floor obstructs part of this wall
if (!seg->linedef->flags & ML_DRAWFULLHEIGHT)
if ((seg->linedef->flags & ML_DRAWFULLHEIGHT) == 0)
{
if (ffh1 > bch1 && ffh2 > bch2)
{
Expand Down Expand Up @@ -2108,7 +2108,7 @@ void HWWall::Process(HWDrawInfo *di, seg_t *seg, sector_t * frontsector, sector_

/* bottom texture */
// the back sector's ceiling obstructs part of this wall (specially important for sky sectors)
if (!seg->linedef->flags & ML_DRAWFULLHEIGHT)
if ((seg->linedef->flags & ML_DRAWFULLHEIGHT) == 0)
{
if (fch1 < bfh1 && fch2 < bfh2)
{
Expand Down

0 comments on commit 2ff92e9

Please sign in to comment.