]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed chase_active (TraceLine no longer returns '0 0 0' when there was no impact)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Oct 2000 10:25:19 +0000 (10:25 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Oct 2000 10:25:19 +0000 (10:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@61 d7cf8633-e32d-0410-b094-e92efae38249

chase.c

diff --git a/chase.c b/chase.c
index f42e76264253912dc281ab6114f32767c59bf45c..a254c74c62ea1dcf51ee4e74b73aeb3084466704 100644 (file)
--- a/chase.c
+++ b/chase.c
@@ -45,8 +45,8 @@ 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);
-
        VectorCopy (trace.endpos, impact);
 }