]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a typo in the last commit
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:06:08 +0000 (14:06 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:06:08 +0000 (14:06 +0000)
From: Rudolf Polzer <divverent@alientrap.org>

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

view.c

diff --git a/view.c b/view.c
index 94db8d2bfbc50517dc1796d44182384144d7e3bb..2814f718ad1ba3b02464a266a1ceefa085ed8874 100644 (file)
--- a/view.c
+++ b/view.c
@@ -545,7 +545,7 @@ void V_CalcRefdef (void)
                                                if(cl.viewmodel_push_x - cl.viewangles[PITCH] >= 180)
                                                        cl.viewmodel_push_x -= 360;
 
-                                               d = cl.viewmodel_push_x - cl.viewangles[PITCH];
+                                               d = cl.viewangles[PITCH] - cl.viewmodel_push_x;
                                                cl.viewmodel_push_x = bound(cl.viewangles[PITCH] - cl_leanmodel_up_limit.value, cl.viewmodel_push_x + d * cl_leanmodel_up_speed.value * ef_speed, cl.viewangles[PITCH] + cl_leanmodel_up_limit.value);
                                        }
                                        else
@@ -559,7 +559,7 @@ void V_CalcRefdef (void)
                                                if(cl.viewmodel_push_y - cl.viewangles[YAW] >= 180)
                                                        cl.viewmodel_push_y -= 360;
 
-                                               d = cl.viewmodel_push_y - cl.viewangles[YAW];
+                                               d = cl.viewangles[YAW] - cl.viewmodel_push_y;
                                                cl.viewmodel_push_y = bound(cl.viewangles[YAW] - cl_leanmodel_side_limit.value, cl.viewmodel_push_y + d * cl_leanmodel_side_speed.value * ef_speed, cl.viewangles[YAW] + cl_leanmodel_side_limit.value);
                                        }
                                        else