- fixed: Destroying a SkyViewpoint disabled all sector portals.

This commit is contained in:
Christoph Oelckers 2016-06-01 10:10:18 +02:00
parent 5348a15b75
commit 14e4a64c82

View file

@ -61,10 +61,13 @@ 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)
// This is necessary to entirely disable EE-style skyboxes {
// if their viewpoint gets deleted. s.mSkybox = 0;
s.mFlags |= PORTSF_SKYFLATONLY; // This is necessary to entirely disable EE-style skyboxes
// if their viewpoint gets deleted.
s.mFlags |= PORTSF_SKYFLATONLY;
}
} }
Super::Destroy(); Super::Destroy();