mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- 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:
parent
9b7114a96d
commit
c847180bdc
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ void ADynamicLight::Tick()
|
|||
if (scale == 0.f) scale = 1.f;
|
||||
|
||||
intensity = Sector->lightlevel * scale;
|
||||
intensity = clamp<float>(intensity, 0.f, 1024.f);
|
||||
intensity = clamp<float>(intensity, 0.f, 255.f);
|
||||
|
||||
m_currentRadius = intensity;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue