git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7894
d7cf8633-e32d-0410-b094-
e92efae38249
r_viewcache.entityvisible[i] = !(ent->flags & renderimask) && ((ent->model && ent->model->type == mod_sprite && (ent->model->sprite.sprnum_type == SPR_LABEL || ent->model->sprite.sprnum_type == SPR_LABEL_SCALE)) || !R_CullBox(ent->mins, ent->maxs)) && ((ent->effects & EF_NODEPTHTEST) || (ent->flags & RENDER_VIEWMODEL) || r_refdef.worldmodel->brush.BoxTouchingVisibleLeafs(r_refdef.worldmodel, r_viewcache.world_leafvisible, ent->mins, ent->maxs));
}
- if(r_cullentities_trace.integer)
+ if(r_cullentities_trace.integer && r_refdef.worldmodel->brush.TraceLineOfSight)
{
for (i = 0;i < r_refdef.numentities;i++)
{
}
// or not seen by random tracelines
- if (sv_cullentities_trace.integer && !isbmodel)
+ if (sv_cullentities_trace.integer && !isbmodel && sv.worldmodel->brush.TraceLineOfSight)
{
int samples = s->specialvisibilityradius ? sv_cullentities_trace_samples_extra.integer : sv_cullentities_trace_samples.integer;
float enlarge = sv_cullentities_trace_enlarge.value;