]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
removed the commented out RecursiveHullCheckPoint function
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Mar 2005 14:50:43 +0000 (14:50 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Mar 2005 14:50:43 +0000 (14:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5036 d7cf8633-e32d-0410-b094-e92efae38249

collision.c

index 1315d8df4519ac908a26b1caa361cf048c315dd8..e134ec075ad18f76c3f49621244912b879440346 100644 (file)
@@ -184,47 +184,6 @@ loc0:
        return HULLCHECKSTATE_DONE;
 }
 
-#if 0
-// used if start and end are the same
-static void RecursiveHullCheckPoint (RecursiveHullCheckTraceInfo_t *t, int num)
-{
-       // If you can read this, you understand BSP trees
-       while (num >= 0)
-               num = t->hull->clipnodes[num].children[((t->hull->planes[t->hull->clipnodes[num].planenum].type < 3) ? (t->start[t->hull->planes[t->hull->clipnodes[num].planenum].type]) : (DotProduct(t->hull->planes[t->hull->clipnodes[num].planenum].normal, t->start))) < t->hull->planes[t->hull->clipnodes[num].planenum].dist];
-
-       // check for empty
-       t->trace->endcontents = num;
-       if (t->trace->thiscontents)
-       {
-               if (num == t->trace->thiscontents)
-                       t->trace->allsolid = false;
-               else
-               {
-                       // if the first leaf is solid, set startsolid
-                       if (t->trace->allsolid)
-                               t->trace->startsolid = true;
-               }
-       }
-       else
-       {
-               if (num != CONTENTS_SOLID)
-               {
-                       t->trace->allsolid = false;
-                       if (num == CONTENTS_EMPTY)
-                               t->trace->inopen = true;
-                       else
-                               t->trace->inwater = true;
-               }
-               else
-               {
-                       // if the first leaf is solid, set startsolid
-                       if (t->trace->allsolid)
-                               t->trace->startsolid = true;
-               }
-       }
-}
-#endif
-
 static hull_t box_hull;
 static dclipnode_t box_clipnodes[6];
 static mplane_t box_planes[6];