mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue