mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Fix for light without current entity
This commit is contained in:
parent
3b296c43a0
commit
5e7082e72d
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ R_LightPoint(vec3_t p, vec3_t color)
|
|||
vec3_t dist;
|
||||
float add;
|
||||
|
||||
if (!r_worldmodel->lightdata)
|
||||
if (!r_worldmodel->lightdata || !currententity)
|
||||
{
|
||||
color[0] = color[1] = color[2] = 1.0;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue