]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
No need to stop updating the view origin while in the map voting screen. As long...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 22:49:13 +0000 (01:49 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 22:49:13 +0000 (01:49 +0300)
qcsrc/client/View.qc

index ecd64b82ef560f77557c30c4fb75448ee53400ba..49127578db772cabb9c444dd23dc9e881ca2226c 100644 (file)
@@ -432,17 +432,14 @@ void CSQC_UpdateView(float w, float h)
                        else if(chase_current_distance != autocvar_cl_chase_distance)
                                chase_current_distance = autocvar_cl_chase_distance;
 
-                       if not(intermission > 1) // don't update view origin during the map voting screen
-                       {
-                               makevectors(view_angles);
-                               // pass 1, used to check where the camera would go and obtain the trace_fraction
-                               chase_target_origin = pmove_org - view_forward * chase_current_distance;
-
-                               traceline(pmove_org, chase_target_origin, MOVE_NORMAL, self);
-                               // pass 2, also multiplying view_forward with trace_fraction, to prevent the camera from going through walls
-                               // The 0.1 subtraction is to not limit the camera precisely at the wall surface, as that allows the view to poke through
-                               chase_target_origin = pmove_org - view_forward * chase_current_distance * (trace_fraction - 0.1);
-                       }
+                       makevectors(view_angles);
+                       // pass 1, used to check where the camera would go and obtain the trace_fraction
+                       chase_target_origin = pmove_org - view_forward * chase_current_distance;
+
+                       traceline(pmove_org, chase_target_origin, MOVE_NORMAL, self);
+                       // pass 2, also multiplying view_forward with trace_fraction, to prevent the camera from going through walls
+                       // The 0.1 subtraction is to not limit the camera precisely at the wall surface, as that allows the view to poke through
+                       chase_target_origin = pmove_org - view_forward * chase_current_distance * (trace_fraction - 0.1);
 
                        R_SetView(VF_ORIGIN, chase_target_origin);
                }