mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed: Destroying a SkyViewpoint disabled all sector portals.
This commit is contained in:
parent
5348a15b75
commit
14e4a64c82
1 changed files with 7 additions and 4 deletions
|
@ -61,11 +61,14 @@ void ASkyViewpoint::Destroy ()
|
||||||
// remove all sector references to ourselves.
|
// remove all sector references to ourselves.
|
||||||
for (auto &s : sectorPortals)
|
for (auto &s : sectorPortals)
|
||||||
{
|
{
|
||||||
if (s.mSkybox == this) s.mSkybox = 0;
|
if (s.mSkybox == this)
|
||||||
|
{
|
||||||
|
s.mSkybox = 0;
|
||||||
// This is necessary to entirely disable EE-style skyboxes
|
// This is necessary to entirely disable EE-style skyboxes
|
||||||
// if their viewpoint gets deleted.
|
// if their viewpoint gets deleted.
|
||||||
s.mFlags |= PORTSF_SKYFLATONLY;
|
s.mFlags |= PORTSF_SKYFLATONLY;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Super::Destroy();
|
Super::Destroy();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue