From a411b93e1dcafa81b657c2ae74e91e9feb43ca30 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 12 Apr 2016 16:01:08 +0200 Subject: [PATCH] - fixed: The dynamic pulse light should always use its maximum size for linking into the sector lists, just like the other types with changing size do. These limking operations are not cheap so it's preferable to have them affect a bit more geometry than running the linking code each tic. --- 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 2e4c9b005..7cb6e91d9 100644 --- a/src/gl/dynlights/a_dynlight.cpp +++ b/src/gl/dynlights/a_dynlight.cpp @@ -363,7 +363,7 @@ void ADynamicLight::UpdateLocation() // The radius being used here is always the maximum possible with the // current settings. This avoids constant relinking of flickering lights - if (lighttype == FlickerLight || lighttype == RandomFlickerLight) + if (lighttype == FlickerLight || lighttype == RandomFlickerLight || lighttype == PulseLight) { intensity = float(MAX(m_intensity[0], m_intensity[1])); }