- removed all uses of BYTE as function return value or functio parameter from the dynamic light code.
These were truncating the actual light values.
This commit is contained in:
parent
1515ab8f4a
commit
a5f417b1e5
2 changed files with 5 additions and 5 deletions
|
|
@ -266,7 +266,7 @@ void ADynamicLight::Tick()
|
|||
|
||||
case FlickerLight:
|
||||
{
|
||||
BYTE rnd = randLight();
|
||||
int rnd = randLight();
|
||||
float pct = specialf1 / 360.f;
|
||||
|
||||
m_currentRadius = float(args[LIGHT_INTENSITY + (rnd >= pct * 255)]);
|
||||
|
|
@ -293,7 +293,7 @@ void ADynamicLight::Tick()
|
|||
// These need some more work elsewhere
|
||||
case ColorFlickerLight:
|
||||
{
|
||||
BYTE rnd = randLight();
|
||||
int rnd = randLight();
|
||||
float pct = specialf1/360.f;
|
||||
|
||||
m_currentRadius = m_Radius[rnd >= pct * 255];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue