]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
added rampsize parameter to BuildGammaTable8 and 16
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index 562e487be1b22abb89e4dd1625c9d97ccd0a1a1c..73acc74efdb06f04cc2e5647136ad61ed7b482c6 100644 (file)
--- a/view.c
+++ b/view.c
@@ -406,7 +406,7 @@ void V_CalcRefdef (void)
                                chase_dest[0] = vieworg[0] + forward[0] * dist;
                                chase_dest[1] = vieworg[1] + forward[1] * dist;
                                chase_dest[2] = vieworg[2] + forward[2] * dist + camup;
-                               trace = CL_TraceBox(vieworg, vec3_origin, vec3_origin, chase_dest, true, NULL, SUPERCONTENTS_SOLID | SUPERCONTENTS_SKY, false);
+                               trace = CL_TraceBox(vieworg, vec3_origin, vec3_origin, chase_dest, true, NULL, SUPERCONTENTS_SOLID | SUPERCONTENTS_BODY | SUPERCONTENTS_SKY, false);
                                VectorMAMAM(1, trace.endpos, 8, forward, 4, trace.plane.normal, vieworg);
                        }
                        else