From: divverent Date: Mon, 29 Dec 2008 09:32:47 +0000 (+0000) Subject: for null models, respect the mins/maxs set by QC for culling X-Git-Tag: xonotic-v0.1.0preview~1978 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=6dab44a4a2dc52692d90438b14aef70a9ed96930;p=xonotic%2Fdarkplaces.git for null models, respect the mins/maxs set by QC for culling git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8612 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 22237bba..4e541af0 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1150,7 +1150,7 @@ static qboolean SV_PrepareEntityForSending (prvm_edict_t *ent, entity_state_t *c // calculate the visible box of this entity (don't use the physics box // as that is often smaller than a model, and would not count // specialvisibilityradius) - if ((model = sv.models[modelindex])) + if ((model = sv.models[modelindex]) && (model->type != mod_null)) { float scale = cs->scale * (1.0f / 16.0f); if (cs->angles[0] || cs->angles[2]) // pitch and roll