mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
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:
parent
fd5aee1d5e
commit
cde0bbb807
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue