]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
gunangles[ROLL] = cl.viewangles[ROLL] rather than 0, because the view may roll sometimes.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:09:57 +0000 (14:09 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:09:57 +0000 (14:09 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index da3e48cf95b18ca81cb424c662607856a9ccbe6e..7daca6bfbc93056598e6ee60b673b27cb394d256 100644 (file)
--- a/view.c
+++ b/view.c
@@ -618,7 +618,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] = 0;
+                                       gunangles[ROLL] = cl.viewangles[ROLL];
 
                                        // 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!