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