summaryrefslogtreecommitdiff
path: root/src/game/g_misc.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/game/g_misc.c
parent16c0597ac7177923e33731bff0ff74971d87b06f (diff)
* Light flares are now culled based on a new key "mindist" - minimum distance
Diffstat (limited to 'src/game/g_misc.c')
-rw-r--r--src/game/g_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_misc.c b/src/game/g_misc.c
index 7004d041..d8055f3a 100644
--- a/src/game/g_misc.c
+++ b/src/game/g_misc.c
@@ -512,6 +512,8 @@ void SP_misc_light_flare( gentity_t *self )
G_SpawnFloat( "speed", "200", &self->speed );
self->s.time = self->speed;
+
+ G_SpawnInt( "mindist", "0", &self->s.generic1 );
if( self->spawnflags & 1 )
self->s.eFlags |= EF_NODRAW;