From 2a27db146e9f1ef908988f05172f3526378ca28b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 7 Dec 2011 15:35:19 +0900 Subject: [PATCH] Use a bit of epsilon in trace_contents(). All tests pass again. --- libs/models/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/models/trace.c b/libs/models/trace.c index 398dc9857..c72609763 100644 --- a/libs/models/trace.c +++ b/libs/models/trace.c @@ -646,7 +646,7 @@ trace_contents (hull_t *hull, trace_t *trace, clipleaf_t *leaf, // the side of the plane on which we are does not matter, only // whether we're crossing the plane. merely touching the plane does // not cause us to cross it - if (fabs (dist) >= offset) + if (fabs (dist) >= offset - PLANE_EPSILON) continue; if (!portal_intersect (trace, portal, plane, origin)) continue;