From: lordhavoc Date: Sat, 21 Oct 2000 10:25:19 +0000 (+0000) Subject: fixed chase_active (TraceLine no longer returns '0 0 0' when there was no impact) X-Git-Tag: RELEASE_0_2_0_RC1~959 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b675b34cba8f413cdf2da595014e3a00df5e2c05;p=xonotic%2Fdarkplaces.git fixed chase_active (TraceLine no longer returns '0 0 0' when there was no impact) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@61 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/chase.c b/chase.c index f42e7626..a254c74c 100644 --- 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); }