]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Temporarily move the camera better when it touches a wall. Needs to be improved.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 16:51:05 +0000 (19:51 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 16:51:05 +0000 (19:51 +0300)
qcsrc/client/View.qc

index 9f41d3b0b4f3cb2a9112b7a2952682088ce8ed07..fb2be26003b7a5a8ede609016c13c030e9f5b290 100644 (file)
@@ -429,6 +429,8 @@ void CSQC_UpdateView(float w, float h)
                        traceline(pmove_org, chase_target_origin, MOVE_NORMAL, self);
                        if(trace_fraction == 1)
                                R_SetView(VF_ORIGIN, chase_target_origin);
+                       else
+                               R_SetView(VF_ORIGIN, pmove_org);
                }
                else if(autocvar_chase_active < 0)
                {