]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - chase.c
optimized AngleVectors calls (pass NULL for vectors that should not be generated)
[xonotic/darkplaces.git] / chase.c
diff --git a/chase.c b/chase.c
index 21893960b14923dcea732e5455352eddf9276200..9bab5473dc09a8be7f207cb73b6008f13add33f9 100644 (file)
--- a/chase.c
+++ b/chase.c
@@ -53,13 +53,13 @@ float TraceLine (vec3_t start, vec3_t end, vec3_t impact, vec3_t normal)
 
 void Chase_Update (void)
 {
-       vec3_t  forward, up, right, stop, chase_dest, normal;
+       vec3_t  forward, stop, chase_dest, normal;
        float   dist;
 
        chase_back.value = bound(0, chase_back.value, 128);
        chase_up.value = bound(-64, chase_up.value, 64);
 
-       AngleVectors (cl.viewangles, forward, right, up);
+       AngleVectors (cl.viewangles, forward, NULL, NULL);
 
        dist = -chase_back.value - 8;
        chase_dest[0] = r_refdef.vieworg[0] + forward[0] * dist;