- fixed size clamping of sector lights to use 1024 as maximum, not 255 as inherited from ZDoomGL.

This commit is contained in:
Christoph Oelckers 2017-05-31 10:41:43 +02:00
parent 977d5988c5
commit afa2888acb

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, 255.f); intensity = clamp<float>(intensity, 0.f, 1024.f);
m_currentRadius = intensity; m_currentRadius = intensity;
break; break;