mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 13:20:34 +00:00
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:
parent
69b6e5ad48
commit
2909710b8c
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue