]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - chase.c
Borland C++ makefile for Darkplaces. Does NOT use asm objs yet, but works otherwise.
[xonotic/darkplaces.git] / chase.c
diff --git a/chase.c b/chase.c
index f89a5d66f7bdfd9c0ff30a68819a5ef34fb21628..a254c74c62ea1dcf51ee4e74b73aeb3084466704 100644 (file)
--- a/chase.c
+++ b/chase.c
@@ -38,19 +38,16 @@ void Chase_Reset (void)
 //     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);
+extern 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);
-
        VectorCopy (trace.endpos, impact);
-       */
-       VectorCopy (end, impact);
 }
 
 void Chase_Update (void)