summaryrefslogtreecommitdiff
path: root/src/cgame/cg_ents.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r--src/cgame/cg_ents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index 55940b34..38e4c798 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -475,10 +475,10 @@ static void CG_LightFlare( centity_t *cent )
//can only see the flare when in front of it
flare.radius = len / es->origin2[ 0 ];
- if( es->origin2[ 1 ] == 0 )
+ if( es->origin2[ 2 ] == 0 )
srcRadius = srLocal = flare.radius / 2.0f;
else
- srcRadius = srLocal = len / es->origin2[ 1 ];
+ srcRadius = srLocal = len / es->origin2[ 2 ];
maxAngle = es->origin2[ 1 ];