]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
makevectors goes before view_forward. Though it worked fine before too, so I'm not...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 15:16:07 +0000 (18:16 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 15:16:07 +0000 (18:16 +0300)
qcsrc/client/View.qc

index 1968eeddfc5624295f4be35fd08ddc9abe686525..9f41d3b0b4f3cb2a9112b7a2952682088ce8ed07 100644 (file)
@@ -422,15 +422,13 @@ void CSQC_UpdateView(float w, float h)
                                chase_current_distance = autocvar_cl_chase_distance;
 
                        vector chase_target_origin;
+                       makevectors(view_angles);
                        chase_target_origin = pmove_org - view_forward * chase_current_distance;
 
                        // don't allow the camera to go through walls
                        traceline(pmove_org, chase_target_origin, MOVE_NORMAL, self);
                        if(trace_fraction == 1)
-                       {
-                               makevectors(view_angles);
                                R_SetView(VF_ORIGIN, chase_target_origin);
-                       }
                }
                else if(autocvar_chase_active < 0)
                {