From d974276ea91acccd09cd46f8f2b84ed8234dd4a9 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 22 Aug 2002 22:53:07 +0000 Subject: * Some more improvements to light flares --- src/game/g_misc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game') diff --git a/src/game/g_misc.c b/src/game/g_misc.c index 5698b845..5fcc9ed6 100644 --- a/src/game/g_misc.c +++ b/src/game/g_misc.c @@ -455,6 +455,9 @@ void SP_misc_light_flare( gentity_t *self ) self->s.eType = ET_LIGHTFLARE; self->s.modelindex = G_ShaderIndex( self->targetShaderName ); VectorCopy( self->pos2, self->s.origin2 ); + + if( self->spawnflags & 1 ) + self->s.eFlags |= EF_NODRAW; trap_LinkEntity( self ); } -- cgit