Skip to content

Commit

Permalink
- small fix for some spotlights from world->entities being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
sultim-t committed Mar 4, 2023
1 parent aac134f commit 979789e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ref/gl/gl_rlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,13 @@ void RT_ParseStaticLightEntities()
{
AngleVectors( light.allangles, direction, NULL, NULL );
}
else if( ( has & LT_HAS_PITCH ) && ( has & LT_HAS_ANGLE ) )
else if( ( has & LT_HAS_PITCH ) || ( has & LT_HAS_ANGLE ) )
{
vec3_t angles = { -light.pitch, light.angle, 0 };
vec3_t angles = {
( has & LT_HAS_PITCH ) ? -light.pitch : 0,
( has & LT_HAS_ANGLE ) ? light.angle : 0,
0,
};
AngleVectors( angles, direction, NULL, NULL );
}
else
Expand Down

0 comments on commit 979789e

Please sign in to comment.