Fix ML_DRAWFULLHEIGHT flag check

This commit is contained in:
Kevin Caccamo 2020-01-10 19:02:39 -05:00 committed by Christoph Oelckers
parent 7ca6e7e5c1
commit 2ff92e91d2
1 changed files with 2 additions and 2 deletions

View File

@ -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) if (frontsector->GetTexture(sector_t::floor) != skyflatnum || backsector->GetTexture(sector_t::floor) != skyflatnum)
{ {
// the back sector's floor obstructs part of this wall // 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) if (ffh1 > bch1 && ffh2 > bch2)
{ {
@ -2108,7 +2108,7 @@ void HWWall::Process(HWDrawInfo *di, seg_t *seg, sector_t * frontsector, sector_
/* bottom texture */ /* bottom texture */
// the back sector's ceiling obstructs part of this wall (specially important for sky sectors) // 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) if (fch1 < bfh1 && fch2 < bfh2)
{ {