- fixed flicker light selection of light radius.

This commit is contained in:
Christoph Oelckers 2019-01-23 22:31:22 +01:00 committed by drfrag
parent 9402929209
commit 1ab0be9d0c

View file

@ -237,7 +237,7 @@ void FDynamicLight::ReleaseLight()
if (prev != nullptr) prev->next = next;
else level.lights = next;
if (next != nullptr) next->prev = prev;
prev = nullptr;
next = prev = nullptr;
FreeList.Push(this);
}
@ -317,7 +317,7 @@ void FDynamicLight::Tick()
case FlickerLight:
{
int rnd = randLight(360);
m_currentRadius = float((rnd >= int(specialf1))? GetIntensity() : GetSecondaryIntensity());
m_currentRadius = float((rnd < int(specialf1))? GetIntensity() : GetSecondaryIntensity());
break;
}