]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't hit your own model with cl_prydoncursor traces
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Jun 2005 09:18:42 +0000 (09:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Jun 2005 09:18:42 +0000 (09:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5396 d7cf8633-e32d-0410-b094-e92efae38249

cl_collision.c

index c97f0a3f4dbff6efc60ee914815f812d35606bc3..81cc2a38e3f543814b4fd8c6f712a9211a745187 100644 (file)
@@ -223,6 +223,8 @@ float CL_SelectTraceLine(const vec3_t start, const vec3_t end, vec3_t impact, ve
                        continue;
                if (!ent->model || !ent->model->TraceBox)
                        continue;
+               if ((ent->flags & RENDER_EXTERIORMODEL) && !chase_active.integer)
+                       continue;
                // if transparent and not selectable, skip entity
                if (!(cl_entities[n].state_current.effects & EF_SELECTABLE) && (ent->alpha < 1 || (ent->effects & (EF_ADDITIVE | EF_NODEPTHTEST))))
                        continue;