From a78daa8937de500749c597be11bacd64a279d9ac 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 a4808d4ea..1510fc834 100644 --- a/src/g_shared/a_dynlight.cpp +++ b/src/g_shared/a_dynlight.cpp @@ -225,7 +225,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); } @@ -305,7 +305,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; }