From cde0bbb807daf18627dccd996bc56095408159b3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 20 Nov 2011 12:02:56 +0900 Subject: [PATCH] For now, don't use box clipping for point traces. Until I figure out how I want to handle zero sized boxes, don't test them. --- libs/models/test/testclip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/models/test/testclip.c b/libs/models/test/testclip.c index c9b89276d..264b57ec7 100644 --- a/libs/models/test/testclip.c +++ b/libs/models/test/testclip.c @@ -373,7 +373,8 @@ do_trace (box_t *box, hull_t *hull, vec3_t start, vec3_t end) trace.inwater = false; trace.fraction = 1; VectorCopy (box->extents, trace.extents); - trace.type = tr_box; + // FIXME specify tract type in test spec + trace.type = box == &point ? tr_point : tr_box; VectorCopy (end, trace.endpos); MOD_TraceLine (hull, 0, start, end, &trace); return trace;