From bcdf71031611f1f92f9c3e8fc9c8135a5366a306 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 24 Dec 2006 04:34:08 +0000 Subject: [PATCH] bah, missed those 0s --- libs/models/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/models/trace.c b/libs/models/trace.c index aaea60a5a..8e37062f3 100644 --- a/libs/models/trace.c +++ b/libs/models/trace.c @@ -169,11 +169,11 @@ MOD_TraceLine (hull_t *hull, int num, const vec3_t start, const vec3_t end, // (front == -offset && back == -offset), the trace will go down // the /correct/ side of the plane: ie, the side the box is actually // on - if (front >= 0 && back >= 0) { + if (front >= offset && back >= offset) { num = node->children[0]; continue; } - if (front < 0 && back < 0) { + if (front < offset && back < offset) { num = node->children[1]; continue; }