// start position 12 units behind head
}
-qboolean SV_RecursiveHullCheck (hull_t *hull, int num, float p1f, float p2f, vec3_t p1, vec3_t p2, trace_t *trace);
-
void TraceLine (vec3_t start, vec3_t end, vec3_t impact)
{
trace_t trace;
memset (&trace, 0, sizeof(trace));
+ VectorCopy (end, trace.endpos); // fix TraceLine endpoint bug
SV_RecursiveHullCheck (cl.worldmodel->hulls, 0, 0, 1, start, end, &trace);
-
- if (trace.fraction < 1)
- {
- VectorCopy (trace.endpos, impact);
- }
- else
- {
- VectorCopy (end, impact);
- }
+ VectorCopy (trace.endpos, impact);
}
void Chase_Update (void)