]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Minor comment arrangements
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:07:02 +0000 (14:07 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:07:02 +0000 (14:07 +0000)
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>

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

view.c

diff --git a/view.c b/view.c
index 685957dc8212df9e1187db9f402ec5c33d0e2a98..ead18fc6b7c927a568f6425a980ea689992c3161 100644 (file)
--- 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