light: fix issue with CalcPoints trace hitting a corner, spuriously setting tr.hitback, and returning the wrong hitpoint

This commit is contained in:
Eric Wasylishen 2016-03-05 00:57:47 -07:00
parent bc6e2ed3ee
commit 1a48e5a24a
1 changed files with 0 additions and 10 deletions

View File

@ -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;
}
}