- 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.
This commit is contained in:
Christoph Oelckers 2018-11-04 20:56:44 +01:00
parent 9b7114a96d
commit c847180bdc

View file

@ -324,7 +324,7 @@ void ADynamicLight::Tick()
if (scale == 0.f) scale = 1.f; if (scale == 0.f) scale = 1.f;
intensity = Sector->lightlevel * scale; intensity = Sector->lightlevel * scale;
intensity = clamp<float>(intensity, 0.f, 1024.f); intensity = clamp<float>(intensity, 0.f, 255.f);
m_currentRadius = intensity; m_currentRadius = intensity;
break; break;