- 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.
This commit is contained in:
Christoph Oelckers 2016-04-12 16:01:08 +02:00
parent 09d0cb5fd5
commit a411b93e1d

View file

@ -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]));
}