From 9a5788ed94c9c57ec14c3132dcb3ffa7dae4fe05 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 14 Jul 2014 16:09:46 +0200 Subject: allow non-brushmodel movers to have no models at all, without resulting in drawing of an axis model --- src/cgame/cg_ents.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index e8d60f4d..fe755d4f 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -497,6 +497,9 @@ static void CG_Mover( centity_t *cent ) s1 = ¢->currentState; + if( !s1->modelindex ) + return; + // create the render entity memset( &ent, 0, sizeof( ent ) ); VectorCopy( cent->lerpOrigin, ent.origin ); -- cgit