- fixed flicker light selection of light radius.

This commit is contained in:
Christoph Oelckers 2019-01-23 22:31:22 +01:00
parent d60707c71e
commit a78daa8937

View file

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