- 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:
Christoph Oelckers 2017-02-03 10:13:16 +01:00
commit a5f417b1e5
2 changed files with 5 additions and 5 deletions

View file

@ -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];