]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
view: Remove unneeded var sets. Fixes view shifting a few pixels when paused
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 26 Sep 2020 21:11:35 +0000 (21:11 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 26 Sep 2020 21:11:35 +0000 (21:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12947 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index 7c70c058787a615e0ac6aa2222e526b6eed03af8..fe561ea8b6c1042681883cab2effc54c30d3ca6a 100644 (file)
--- a/view.c
+++ b/view.c
@@ -892,10 +892,8 @@ void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewa
                                        }
                                        else
                                        {
-                                               vieworg[2] += viewheight;
                                                // Classic Quake bobbing
-                                               gunorg[2] += viewheight;
-                                               for (int i=0 ; i<3 ; i++)
+                                               for (int i = 0; i < 3; i++)
                                                        gunorg[i] += forward[i]*bob*0.4;
                                                gunorg[2] += bob;