From 1a48e5a24a51555511241bae8032b254b7ada626 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 5 Mar 2016 00:57:47 -0700 Subject: [PATCH] light: fix issue with CalcPoints trace hitting a corner, spuriously setting tr.hitback, and returning the wrong hitpoint --- light/ltface.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/light/ltface.c b/light/ltface.c index 2139c6d2..b41e111d 100644 --- a/light/ltface.c +++ b/light/ltface.c @@ -1489,11 +1489,6 @@ DirtTrace(const vec3_t start, const vec3_t stop, const dmodel_t *self, vec3_t hi if (self) { if (TraceFaces (&ti, self->headnode[0], start, stop)) { VectorCopy(ti.point, hitpoint_out); - - if (ti.hitback) { - VectorCopy(start, hitpoint_out); - } - return !ti.hitsky; } } @@ -1504,11 +1499,6 @@ DirtTrace(const vec3_t start, const vec3_t stop, const dmodel_t *self, vec3_t hi continue; if (TraceFaces (&ti, (*model)->headnode[0], start, stop)) { VectorCopy(ti.point, hitpoint_out); - - if (ti.hitback) { - VectorCopy(start, hitpoint_out); - } - return !ti.hitsky; } }