summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-14 16:09:46 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:17 +0100
commit9a5788ed94c9c57ec14c3132dcb3ffa7dae4fe05 (patch)
tree9feab57fe6af58669b37ac79a88f07d748125392
parent4770f7211ed30a0a567ba49cb0d7224ab830adcb (diff)
allow non-brushmodel movers to have no models at all, without resulting in drawing of an axis model
-rw-r--r--src/cgame/cg_ents.c3
1 files changed, 3 insertions, 0 deletions
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 = &cent->currentState;
+ if( !s1->modelindex )
+ return;
+
// create the render entity
memset( &ent, 0, sizeof( ent ) );
VectorCopy( cent->lerpOrigin, ent.origin );