Use a bit of epsilon in trace_contents().

All tests pass again.
This commit is contained in:
Bill Currie 2011-12-07 15:35:19 +09:00
parent 66dffef936
commit 2a27db146e

View file

@ -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;