From deadb4d9bcf85a64591d3f51f67846216f5b4b92 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 9 Feb 2007 09:29:46 +0000 Subject: [PATCH] make sure trace.fraction is initialized --- qw/source/cl_cam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qw/source/cl_cam.c b/qw/source/cl_cam.c index e179f8e9b..9818c5aaa 100644 --- a/qw/source/cl_cam.c +++ b/qw/source/cl_cam.c @@ -685,6 +685,7 @@ TraceLine (vec3_t start, vec3_t end, vec3_t impact) trace_t trace; memset (&trace, 0, sizeof (trace)); + trace.fraction = 1; MOD_TraceLine (cl.worldmodel->hulls, 0, start, end, &trace); VectorCopy (trace.endpos, impact);