From: divverent Date: Sun, 2 May 2010 14:06:08 +0000 (+0000) Subject: fix a typo in the last commit X-Git-Tag: xonotic-v0.1.0preview~230^2~340 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b41be46ff68f49e9d832fd081ad040c5be6cf33e;p=xonotic%2Fdarkplaces.git fix a typo in the last commit From: Rudolf Polzer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10137 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/view.c b/view.c index 94db8d2b..2814f718 100644 --- 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