Don't stop processing dlights if one of them had a radius of 0.

I don't know if this has any visible effects. This was reported in
issue #333.
This commit is contained in:
Yamagi Burmeister 2018-09-30 19:59:07 +02:00
parent 69b6e5ad48
commit 2909710b8c

View file

@ -131,7 +131,6 @@ CL_AllocDlight(int key)
{
if (dl->key == key)
{
dl->key = key;
return dl;
}
}
@ -185,7 +184,7 @@ CL_RunDLights(void)
if (dl->die < cl.time)
{
dl->radius = 0;
return;
continue;
}
dl->radius -= cls.rframetime * dl->decay;