]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mathlib.c
now checks for NULL worldmodel
[xonotic/darkplaces.git] / mathlib.c
index a0e328d0e86fb21836f4a05f02cd101c10e86e03..4dea77d59d066b15b7b57600ebe6c74c62905cbd 100644 (file)
--- a/mathlib.c
+++ b/mathlib.c
@@ -244,14 +244,9 @@ void RotatePointAroundVector( vec3_t dst, const vec3_t dir, const vec3_t point,
        vec3_t vr, vu, vf;
 
        angle = DEG2RAD(degrees);
-
        c = cos(angle);
        s = sin(angle);
-
-       vf[0] = dir[0];
-       vf[1] = dir[1];
-       vf[2] = dir[2];
-
+       VectorCopy(dir, vf);
        VectorVectors(vf, vr, vu);
 
        t0 = vr[0] *  c + vu[0] * -s;