- fixed: 3D floor that extend into the real sector's floor were not clipped properly.

The only check being done on this was done after processing for the renderer which simply is too late.
This commit is contained in:
Christoph Oelckers 2018-03-24 22:42:10 +01:00
parent 73f9300c2b
commit a33ad3c99e

View file

@ -1392,6 +1392,12 @@ void GLWall::DoFFloorBlocks(seg_t * seg, sector_t * frontsector, sector_t * back
ff_topleft = topleft; ff_topleft = topleft;
ff_topright = topright; ff_topright = topright;
} }
if (ff_bottomleft < bottomleft && ff_bottomright < bottomright)
{
// the new section extends into the floor.
ff_bottomleft = bottomleft;
ff_bottomright = bottomright;
}
// do all inverse floors above the current one it there is a gap between the // do all inverse floors above the current one it there is a gap between the
// last 3D floor and this one. // last 3D floor and this one.