From 953b80172a724595962cc00974fae72d63ff7b1c Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 24 Oct 2005 04:17:09 +0000 Subject: [PATCH] #ifdef 0'd out BoxOnPlaneSide_Separate as it is not used git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5761 d7cf8633-e32d-0410-b094-e92efae38249 --- mathlib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mathlib.c b/mathlib.c index cdbe0364..6bb3f487 100644 --- 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) { -- 2.39.2