]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
for null models, respect the mins/maxs set by QC for culling
[xonotic/darkplaces.git] / 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