- removed the annoying assert in the dynamic light code.

I don't think that any of the remaining situations are a genuine problem, so let's just set the radius to the larger value.
This commit is contained in:
Christoph Oelckers 2017-02-01 19:24:05 +01:00
parent a59a9e7420
commit d663f31e77

View file

@ -391,7 +391,7 @@ void ADynamicLight::UpdateLocation()
intensity = m_currentRadius;
}
radius = intensity * 2.0f;
assert(radius >= m_currentRadius * 2);
if (radius < m_currentRadius * 2) radius = m_currentRadius * 2;
if (X() != oldx || Y() != oldy || radius != oldradius)
{