From 42d1b5f714589cdce0fa0195aaf78706b3db7192 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 2 May 2010 14:07:02 +0000 Subject: [PATCH] Minor comment arrangements From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10142 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/view.c b/view.c index 685957dc..ead18fc6 100644 --- a/view.c +++ b/view.c @@ -600,7 +600,7 @@ void V_CalcRefdef (void) VectorCopy(cl.gunorg_follow, gunorg); - // gun model bobbing code + // view 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) { @@ -620,15 +620,14 @@ void V_CalcRefdef (void) bob = xyspeed * cl_bob.value; bob = bob*0.3 + bob*0.7*cycle; vieworg[2] += bound(-7, bob, 4); - // we also need to adjust gunorg, or this appears like - // pushing the gun! In the old code, this was applied - // to vieworg BEFORE copying to gunorg, but this is not - // viable with the new followmodel code as that would - // mean that followmodel would work on the - // munged-by-bob vieworg and do feedback + // we also need to adjust gunorg, or this appears like pushing the gun! + // In the old code, this was applied to vieworg BEFORE copying to gunorg, + // but this is not viable with the new followmodel code as that would mean + // that followmodel would work on the munged-by-bob vieworg and do feedback gunorg[2] += bound(-7, bob, 4); } + // gun model bobbing code if (cl_bob.value && cl_bobmodel.value) { // calculate for swinging gun model -- 2.39.2