mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- Fixed: r4225 accidentally removed the sky texture check for markceiling disabling.
SVN r4247 (trunk)
This commit is contained in:
parent
d86b16d540
commit
63704a8b69
1 changed files with 8 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue