From 2012ebadb01748ee38f5a30f6c4701ad2c19e6d6 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 6 Mar 2005 14:50:43 +0000 Subject: [PATCH] removed the commented out RecursiveHullCheckPoint function git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5036 d7cf8633-e32d-0410-b094-e92efae38249 --- collision.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/collision.c b/collision.c index 1315d8df..e134ec07 100644 --- a/collision.c +++ b/collision.c @@ -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]; -- 2.39.2