mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +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)
|
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
|
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