This commit is contained in:
Rachael Alexanderson 2017-01-29 18:17:09 -05:00
commit 0af86efb17
18 changed files with 116 additions and 76 deletions

View file

@ -208,7 +208,7 @@ void ADynamicLight::Activate(AActor *activator)
m_cycler.SetCycleType(CYCLE_Sin);
m_currentRadius = m_cycler.GetVal();
}
assert(m_currentRadius > 0);
if (m_currentRadius <= 0) m_currentRadius = 1;
}
@ -329,6 +329,7 @@ void ADynamicLight::Tick()
m_currentRadius = float(args[LIGHT_INTENSITY]);
break;
}
if (m_currentRadius <= 0) m_currentRadius = 1;
UpdateLocation();
}