mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +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
|
if (planeside <= 0) // above view plane
|
||||||
markfloor = false;
|
markfloor = false;
|
||||||
|
|
||||||
planeside = frontsector->ceilingplane.PointOnSide(viewx, viewy, viewz);
|
if (frontsector->GetTexture(sector_t::ceiling) != skyflatnum)
|
||||||
if (frontsector->ceilingplane.c > 0) // 3D floors have the ceiling backwards
|
{
|
||||||
planeside = -planeside;
|
planeside = frontsector->ceilingplane.PointOnSide(viewx, viewy, viewz);
|
||||||
if (planeside <= 0) // below view plane
|
if (frontsector->ceilingplane.c > 0) // 3D floors have the ceiling backwards
|
||||||
markceiling = false;
|
planeside = -planeside;
|
||||||
|
if (planeside <= 0) // below view plane
|
||||||
|
markceiling = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FTexture *midtex = TexMan(sidedef->GetTexture(side_t::mid), true);
|
FTexture *midtex = TexMan(sidedef->GetTexture(side_t::mid), true);
|
||||||
|
|
Loading…
Reference in a new issue