From 63704a8b69c861ffdad4f4f61177a2a75c3344fb Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 4 May 2013 19:08:17 +0000 Subject: [PATCH] - Fixed: r4225 accidentally removed the sky texture check for markceiling disabling. SVN r4247 (trunk) --- src/r_segs.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 9d9f197db..d050d8c3b 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -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);