]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Decrease trace_fraction by 0.1 to avoid the camera getting limited exactly at the...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 22:20:31 +0000 (01:20 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 31 Mar 2011 22:20:31 +0000 (01:20 +0300)
qcsrc/client/View.qc

index c55aa8cc611b070df53f7f190f7f1b8cefa8081e..4c6ac91729ef32c3b31aba2aecc96a30885f4a39 100644 (file)
@@ -440,7 +440,7 @@ void CSQC_UpdateView(float w, float h)
 
                                // don't allow the camera to go through walls
                                traceline(pmove_org, chase_target_origin, MOVE_NORMAL, self);
-                               chase_target_origin = pmove_org - view_forward * chase_current_distance * trace_fraction; // pass 2, also multiplying view_forward with trace_fraction, to avoid sticking the camera in solid
+                               chase_target_origin = pmove_org - view_forward * chase_current_distance * (trace_fraction - 0.1); // pass 2, also multiplying view_forward with trace_fraction, to avoid sticking the camera in solid
                        }
 
                        R_SetView(VF_ORIGIN, chase_target_origin);