- fixed: Checking for slopes at untextured bottom parts of the wall checked the ceiling's slope not the floor's.

This commit is contained in:
Christoph Oelckers 2016-04-13 11:41:51 +02:00
parent 37f43617d9
commit d0b30f31e1

View file

@ -1588,7 +1588,7 @@ void GLWall::Process(seg_t *seg, sector_t * frontsector, sector_t * backsector)
}
else if (!(seg->sidedef->Flags & WALLF_POLYOBJ))
{
if ((frontsector->ceilingplane.isSlope() || backsector->ceilingplane.isSlope()) &&
if ((frontsector->floorplane.isSlope() || backsector->floorplane.isSlope()) &&
frontsector->GetTexture(sector_t::floor) != skyflatnum &&
backsector->GetTexture(sector_t::floor) != skyflatnum)
{