From 1ab0be9d0c0b43ab8d0f154c13a64525d86f2dc8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 23 Jan 2019 22:31:22 +0100 Subject: [PATCH] - fixed flicker light selection of light radius. --- src/g_shared/a_dynlight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_shared/a_dynlight.cpp b/src/g_shared/a_dynlight.cpp index ec6995a98..c5aaad646 100644 --- a/src/g_shared/a_dynlight.cpp +++ b/src/g_shared/a_dynlight.cpp @@ -237,7 +237,7 @@ void FDynamicLight::ReleaseLight() if (prev != nullptr) prev->next = next; else level.lights = next; if (next != nullptr) next->prev = prev; - prev = nullptr; + next = prev = nullptr; FreeList.Push(this); } @@ -317,7 +317,7 @@ void FDynamicLight::Tick() case FlickerLight: { int rnd = randLight(360); - m_currentRadius = float((rnd >= int(specialf1))? GetIntensity() : GetSecondaryIntensity()); + m_currentRadius = float((rnd < int(specialf1))? GetIntensity() : GetSecondaryIntensity()); break; }