]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
#ifdef 0'd out BoxOnPlaneSide_Separate as it is not used
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Oct 2005 04:17:09 +0000 (04:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Oct 2005 04:17:09 +0000 (04:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5761 d7cf8633-e32d-0410-b094-e92efae38249

mathlib.c

index cdbe036466888fe9746ffbe5c5c311a485de6f62..6bb3f4871b2300fd40470c4f9e7df8693cd5062d 100644 (file)
--- a/mathlib.c
+++ b/mathlib.c
@@ -296,6 +296,7 @@ int BoxOnPlaneSide(const vec3_t emins, const vec3_t emaxs, const mplane_t *p)
        }
 }
 
+#if 0
 int BoxOnPlaneSide_Separate(const vec3_t emins, const vec3_t emaxs, const vec3_t normal, const vec_t dist)
 {
        switch((normal[0] < 0) | ((normal[1] < 0) << 1) | ((normal[2] < 0) << 2))
@@ -311,6 +312,7 @@ int BoxOnPlaneSide_Separate(const vec3_t emins, const vec3_t emaxs, const vec3_t
        case 7: return (((normal[0] * emins[0] + normal[1] * emins[1] + normal[2] * emins[2]) >= dist) | (((normal[0] * emaxs[0] + normal[1] * emaxs[1] + normal[2] * emaxs[2]) < dist) << 1));
        }
 }
+#endif
 
 void BoxPlaneCorners(const vec3_t emins, const vec3_t emaxs, const mplane_t *p, vec3_t outnear, vec3_t outfar)
 {