From d663f31e77bca7b6404c450730fb766064658b65 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 1 Feb 2017 19:24:05 +0100 Subject: [PATCH] - removed the annoying assert in the dynamic light code. I don't think that any of the remaining situations are a genuine problem, so let's just set the radius to the larger value. --- src/gl/dynlights/a_dynlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/dynlights/a_dynlight.cpp b/src/gl/dynlights/a_dynlight.cpp index 770ea1e501..e5db739bed 100644 --- a/src/gl/dynlights/a_dynlight.cpp +++ b/src/gl/dynlights/a_dynlight.cpp @@ -391,7 +391,7 @@ void ADynamicLight::UpdateLocation() intensity = m_currentRadius; } radius = intensity * 2.0f; - assert(radius >= m_currentRadius * 2); + if (radius < m_currentRadius * 2) radius = m_currentRadius * 2; if (X() != oldx || Y() != oldy || radius != oldradius) {