]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
q3bsp is still not working yet, but getting closer
[xonotic/darkplaces.git] / sv_main.c
index e9f1c33cac43c64848e92bad22fdc7d5f5e18558..8c17d6f0596e923861ac9ceda0bb83f2d96687df 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -506,7 +506,7 @@ void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg)
                        }
 
                        // don't try to cull embedded brush models with this, they're sometimes huge (spanning several rooms)
-                       if (sv_cullentities_trace.integer && (model == NULL || model->type != mod_brush || model->name[0] != '*'))
+                       if (sv_cullentities_trace.integer && (model == NULL || model->brush.TraceBox == NULL || model->name[0] != '*'))
                        {
                                // LordHavoc: test random offsets, to maximize chance of detection
                                testorigin[0] = lhrandom(entmins[0], entmaxs[0]);