- Fixed: r4225 accidentally removed the sky texture check for markceiling disabling.

SVN r4247 (trunk)
This commit is contained in:
Randy Heit 2013-05-04 19:08:17 +00:00
parent d86b16d540
commit 63704a8b69

View file

@ -2250,11 +2250,14 @@ void R_NewWall (bool needlights)
if (planeside <= 0) // above view plane
markfloor = false;
planeside = frontsector->ceilingplane.PointOnSide(viewx, viewy, viewz);
if (frontsector->ceilingplane.c > 0) // 3D floors have the ceiling backwards
planeside = -planeside;
if (planeside <= 0) // below view plane
markceiling = false;
if (frontsector->GetTexture(sector_t::ceiling) != skyflatnum)
{
planeside = frontsector->ceilingplane.PointOnSide(viewx, viewy, viewz);
if (frontsector->ceilingplane.c > 0) // 3D floors have the ceiling backwards
planeside = -planeside;
if (planeside <= 0) // below view plane
markceiling = false;
}
}
FTexture *midtex = TexMan(sidedef->GetTexture(side_t::mid), true);