- cleaned up the skybox type detection logic.

This commit is contained in:
Christoph Oelckers 2016-01-11 20:29:24 +01:00
commit 196c9bc34d
7 changed files with 44 additions and 36 deletions

View file

@ -1088,7 +1088,7 @@ void R_Subsector (subsector_t *sub)
}
skybox = frontsector->GetSkyBox(sector_t::ceiling);
if (skybox->flags7 & MF7_HANDLENODELAY) skybox = NULL; // HW renderer only.
if (skybox->special1 != SKYBOX_MAP) skybox = NULL; // HW renderer only.
ceilingplane = frontsector->ceilingplane.PointOnSide(viewx, viewy, viewz) > 0 ||
frontsector->GetTexture(sector_t::ceiling) == skyflatnum ||
@ -1131,7 +1131,7 @@ void R_Subsector (subsector_t *sub)
// killough 10/98: add support for skies transferred from sidedefs
skybox = frontsector->GetSkyBox(sector_t::floor);
if (skybox->flags7 & MF7_HANDLENODELAY) skybox = NULL; // HW renderer only.
if (skybox->special1 != SKYBOX_MAP) skybox = NULL; // HW renderer only.
floorplane = frontsector->floorplane.PointOnSide(viewx, viewy, viewz) > 0 || // killough 3/7/98
frontsector->GetTexture(sector_t::floor) == skyflatnum ||