From: Mircea Kitsune Date: Thu, 31 Mar 2011 22:20:31 +0000 (+0300) Subject: Decrease trace_fraction by 0.1 to avoid the camera getting limited exactly at the... X-Git-Tag: xonotic-v0.5.0~268^2^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=37bece06e371506e4b4d24dce0ab06508db85475;p=xonotic%2Fxonotic-data.pk3dir.git Decrease trace_fraction by 0.1 to avoid the camera getting limited exactly at the surface of the wall. That allowed the view to poke through at some angles. --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index c55aa8cc6..4c6ac9172 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -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);