mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed flicker light selection of light radius.
This commit is contained in:
parent
d60707c71e
commit
a78daa8937
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,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);
|
||||
}
|
||||
|
||||
|
@ -305,7 +305,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue