]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - collision.c
A minor removal of a few pieces of dead code. Nothing major. This is
[xonotic/darkplaces.git] / collision.c
index 2511205e123bfbc9d1ae143d3ac5c6e52f43ca0c..de405720a73ee0a1cf891862159b490ea9660274 100644 (file)
@@ -33,8 +33,6 @@ static int RecursiveHullCheck (RecursiveHullCheckTraceInfo_t *t, int num, double
        int ret;
        mplane_t *plane;
        double t1, t2;
-       //double frac;
-       //double mid[3];
 
        // variables that need to be stored on the stack when recursing
        dclipnode_t *node;
@@ -170,6 +168,7 @@ loc0:
 // 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];
 
@@ -435,3 +434,4 @@ void Collision_ClipTrace (trace_t *trace, const void *cent, const model_t *cmode
                        rhc.trace->ent = (void *) cent;
        }
 }
+