mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
Fix ML_DRAWFULLHEIGHT flag check
This commit is contained in:
parent
477381f210
commit
4335233a49
1 changed files with 2 additions and 2 deletions
|
@ -1624,7 +1624,7 @@ void GLWall::Process(seg_t *seg, sector_t * frontsector, sector_t * backsector,
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
@ -1708,7 +1708,7 @@ void GLWall::Process(seg_t *seg, sector_t * frontsector, sector_t * backsector,
|
||||||
|
|
||||||
/* 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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue