- Don't draw 3d floor walls that have zero height or less

This commit is contained in:
Magnus Norddahl 2017-09-10 02:18:07 +02:00
parent 4706c56690
commit 5ab0f34aca
1 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,9 @@ void RenderPolyWall::Render3DFloorLine(PolyRenderThread *thread, const TriMatrix
double topTexZ = fakeFloor->model->GetPlaneTexZ(sector_t::ceiling);
double bottomTexZ = fakeFloor->model->GetPlaneTexZ(sector_t::floor);
if (frontceilz1 <= frontfloorz1 || frontceilz2 <= frontfloorz2)
return;
RenderPolyWall wall;
wall.LineSeg = line;
wall.LineSegLine = line->linedef;