From c847180bdc4eeca7a2ad06f01c2288d8b02048b6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 4 Nov 2018 20:56:44 +0100 Subject: [PATCH] - reinstated the sector light clamping threshold from before version 3.3. It turned out that without the clamping the feature does not work well, thanks to a poorly chosen scale of the original arguments. --- src/g_shared/a_dynlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_shared/a_dynlight.cpp b/src/g_shared/a_dynlight.cpp index 98d57c4ab4..fcdde32761 100644 --- a/src/g_shared/a_dynlight.cpp +++ b/src/g_shared/a_dynlight.cpp @@ -324,7 +324,7 @@ void ADynamicLight::Tick() if (scale == 0.f) scale = 1.f; intensity = Sector->lightlevel * scale; - intensity = clamp(intensity, 0.f, 1024.f); + intensity = clamp(intensity, 0.f, 255.f); m_currentRadius = intensity; break;