From: divverent Date: Sun, 2 May 2010 14:07:02 +0000 (+0000) Subject: Minor comment arrangements X-Git-Tag: xonotic-v0.1.0preview~506 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=17289a263e6d581251c8600f7faf6c301d97e741;p=xonotic%2Fdarkplaces.git Minor comment arrangements From: MirceaKitsune git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10142 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=42d1b5f714589cdce0fa0195aaf78706b3db7192 --- 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