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.
This commit is contained in:
Bill Currie 2011-11-20 12:02:56 +09:00
parent fd5aee1d5e
commit cde0bbb807

View file

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