From: cloudwalk Date: Sat, 26 Sep 2020 21:11:35 +0000 (+0000) Subject: view: Remove unneeded var sets. Fixes view shifting a few pixels when paused X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e4e88a9fcd0a01e99e08a68c7ed0dd1de252f8b8;p=xonotic%2Fdarkplaces.git view: Remove unneeded var sets. Fixes view shifting a few pixels when paused git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12947 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/view.c b/view.c index 7c70c058..fe561ea8 100644 --- 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;