]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
for null models, respect the mins/maxs set by QC for culling
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Dec 2008 09:32:47 +0000 (09:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Dec 2008 09:32:47 +0000 (09:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8612 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 22237bba1400d357e6561fd36c8447aff5a1145d..4e541af0153185e5b643431b119174e230716519 100644 (file)
--- 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