From b5605388681066494f754a3202bdf3a904d8e266 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 2 May 2010 14:06:14 +0000 Subject: [PATCH] Fix some comments From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10138 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/view.c b/view.c index 2814f718..de4c3631 100644 --- a/view.c +++ b/view.c @@ -531,7 +531,6 @@ void V_CalcRefdef (void) VectorAdd(vieworg, cl.punchvector, vieworg); if (cl.stats[STAT_HEALTH] > 0) { - // gun model bobbing code double xyspeed, bob; vec_t d; vec_t ef_speed = cl.realframetime; @@ -568,7 +567,6 @@ void V_CalcRefdef (void) VectorSet(gunangles, cl.viewmodel_push_x, cl.viewmodel_push_y, viewangles[2]); // gun model following code - // TODO: make the weapon model not shake when looking around horizontally (due to X axis vs. Y axis) if(cl_followmodel_side.value && cl_followmodel_side_speed.value * ef_speed < 1) // bad things happen if this goes over 1, so prevent the effect { vec_t d0 = vieworg[0] - cl.gunorg_follow[0]; @@ -602,6 +600,7 @@ void V_CalcRefdef (void) VectorCopy(cl.gunorg_follow, gunorg); + // gun model bobbing code xyspeed = sqrt(cl.movement_velocity[0]*cl.movement_velocity[0] + cl.movement_velocity[1]*cl.movement_velocity[1]); if (cl_bob.value && cl_bobcycle.value) { -- 2.39.2