summaryrefslogtreecommitdiff
path: root/src/cgame/cg_ents.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-03-27 05:33:21 +0000
committerTim Angus <tim@ngus.net>2003-03-27 05:33:21 +0000
commit81ee503696d9d5973713afba2afc06b82e41fca8 (patch)
treef2266cfcc72f213a00d3e5c85b3bac47c532b554 /src/cgame/cg_ents.c
parent16c0597ac7177923e33731bff0ff74971d87b06f (diff)
* Light flares are now culled based on a new key "mindist" - minimum distance
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r--src/cgame/cg_ents.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index 5c7c6cab..674c758c 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -582,6 +582,10 @@ static void CG_LightFlare( centity_t *cent )
len = VectorLength( delta );
VectorNormalize( delta );
+ //flare is too close to camera to be drawn
+ if( len < es->generic1 )
+ return;
+
//don't bother for flares behind the view plane
if( DotProduct( delta, cg.refdef.viewaxis[ 0 ] ) < 0.0 )
return;