From 14e4a64c82d664925507adddd1c45c1b1d122d77 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 1 Jun 2016 10:10:18 +0200 Subject: [PATCH] - fixed: Destroying a SkyViewpoint disabled all sector portals. --- src/g_shared/a_skies.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/g_shared/a_skies.cpp b/src/g_shared/a_skies.cpp index 6e85bd886..1da7cd712 100644 --- a/src/g_shared/a_skies.cpp +++ b/src/g_shared/a_skies.cpp @@ -61,10 +61,13 @@ void ASkyViewpoint::Destroy () // remove all sector references to ourselves. for (auto &s : sectorPortals) { - if (s.mSkybox == this) s.mSkybox = 0; - // This is necessary to entirely disable EE-style skyboxes - // if their viewpoint gets deleted. - s.mFlags |= PORTSF_SKYFLATONLY; + if (s.mSkybox == this) + { + s.mSkybox = 0; + // This is necessary to entirely disable EE-style skyboxes + // if their viewpoint gets deleted. + s.mFlags |= PORTSF_SKYFLATONLY; + } } Super::Destroy();