- turned sector_t::FloorSkyBox and CeilingSkyBox into an array.
- removed unused SpreadCeilingPortal function.
This commit is contained in:
parent
61e48013dc
commit
37f18055af
7 changed files with 25 additions and 66 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue