]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a severe bug with viewangles in cl_movement mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 May 2005 04:24:19 +0000 (04:24 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 May 2005 04:24:19 +0000 (04:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5310 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index 3ab19f32b196671ab7e7e359548e0e692d422b26..ac3756d2426e2bae599f86256f1cd633ce477e0d 100644 (file)
@@ -638,7 +638,7 @@ void CL_ClientMovement(qboolean buttonjump, qboolean buttoncrouch)
                        else
                        {
                                // walk
-                               VectorSet(yawangles, 0, cl.viewangles[1], 0);
+                               VectorSet(yawangles, 0, q->viewangles[1], 0);
                                AngleVectors(yawangles, forward, right, up);
                                VectorMAM(q->move[0], forward, q->move[1], right, wishvel);
                                wishspeed = VectorLength(wishvel);