git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2566
d7cf8633-e32d-0410-b094-
e92efae38249
+#include "cl_collision.h"
float CL_TraceLine (const vec3_t start, const vec3_t end, vec3_t impact, vec3_t normal, int contents, int hitbmodels, entity_render_t **hitent)
{
float CL_TraceLine (const vec3_t start, const vec3_t end, vec3_t impact, vec3_t normal, int contents, int hitbmodels, entity_render_t **hitent)
{
+ float maxfrac;
+ int n;
+ entity_render_t *ent;
+ float tracemins[3], tracemaxs[3];
trace_t trace;
if (hitent)
trace_t trace;
if (hitent)
if (hitbmodels && cl_num_brushmodel_entities)
{
if (hitbmodels && cl_num_brushmodel_entities)
{
- int n;
- entity_render_t *ent;
- double tracemins[3], tracemaxs[3];
tracemins[0] = min(start[0], end[0]);
tracemaxs[0] = max(start[0], end[0]);
tracemins[1] = min(start[1], end[1]);
tracemins[0] = min(start[0], end[0]);
tracemaxs[0] = max(start[0], end[0]);
tracemins[1] = min(start[1], end[1]);
+ if (maxfrac < 0 || maxfrac > 1) Con_Printf("fraction out of bounds %f %s:%d\n", maxfrac, __LINE__, __FILE__);