mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- today's 'GCC sucks' fix.
(Yet again some overtly anal type issues with the '? :' operator...)
This commit is contained in:
parent
1e0366f98f
commit
f4ab6074fa
1 changed files with 5 additions and 2 deletions
|
@ -806,12 +806,15 @@ ASkyViewpoint *sector_t::GetSkyBox(int which)
|
|||
{
|
||||
if (which == floor)
|
||||
{
|
||||
return FloorSkyBox != NULL ? FloorSkyBox : (MoreFlags & SECF_NOFLOORSKYBOX)? (ASkyViewpoint*)NULL : level.DefaultSkybox;
|
||||
if (FloorSkyBox != NULL) return FloorSkyBox;
|
||||
if (MoreFlags & SECF_NOFLOORSKYBOX) return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
return CeilingSkyBox != NULL ? CeilingSkyBox : (MoreFlags & SECF_NOCEILINGSKYBOX)? (ASkyViewpoint*)NULL : level.DefaultSkybox;
|
||||
if (CeilingSkyBox != NULL) return CeilingSkyBox;
|
||||
if (MoreFlags & SECF_NOCEILINGSKYBOX) return NULL;
|
||||
}
|
||||
return level.DefaultSkybox;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue