]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Revert "gunangles[ROLL] = cl.viewangles[ROLL] rather than 0, because the view may...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:10:40 +0000 (14:10 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:10:40 +0000 (14:10 +0000)
This reverts commit 7ef836e6b9fb5a58e0c10978efbb83a5430b5905.

From: Rudolf Polzer <divverent@alientrap.org>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10161 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index 580851e4ad0a9241c6d90e074ea451dbf0e936c0..6378ccfc1d7ffa94a493cf147db396ac5b0565c0 100644 (file)
--- a/view.c
+++ b/view.c
@@ -622,7 +622,7 @@ void V_CalcRefdef (void)
 
                                        gunangles[PITCH] *= (cl_leanmodel.value ? -cl_leanmodel_up_speed.value : 0);
                                        gunangles[YAW] *= (cl_leanmodel.value ? -cl_leanmodel_side_speed.value : 0);
-                                       gunangles[ROLL] = cl.viewangles[ROLL];
+                                       gunangles[ROLL] = 0;
 
                                        // 4. perform highpass/lowpass on the adjustment vectors (turning velocity into acceleration!)
                                        //    trick: we must do the lowpass LAST, so the lowpass vector IS the final vector!