- turned sector_t::FloorSkyBox and CeilingSkyBox into an array.

- removed unused SpreadCeilingPortal function.
This commit is contained in:
Christoph Oelckers 2016-01-12 21:34:41 +01:00
commit 37f18055af
7 changed files with 25 additions and 66 deletions

View file

@ -805,16 +805,8 @@ int sector_t::GetCeilingLight () const
ASkyViewpoint *sector_t::GetSkyBox(int which)
{
if (which == floor)
{
if (FloorSkyBox != NULL) return FloorSkyBox;
if (MoreFlags & SECF_NOFLOORSKYBOX) return NULL;
}
else
{
if (CeilingSkyBox != NULL) return CeilingSkyBox;
if (MoreFlags & SECF_NOCEILINGSKYBOX) return NULL;
}
if (SkyBoxes[which] != NULL) return SkyBoxes[which];
if (MoreFlags & (SECF_NOFLOORSKYBOX << which)) return NULL;
return level.DefaultSkybox;
}