Merge branch 'dirt5' into testbuild

This commit is contained in:
Eric Wasylishen 2015-01-21 13:56:14 -07:00
commit 172c81a556
1 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ TraceLine(const dmodel_t *model, const int traceflags,
if (hitpoint) {
hitpoint->dplane = crossnode->plane;
hitpoint->side = crossnode->side;
VectorCopy(crossnode->back, hitpoint->point);
VectorCopy(crossnode->front, hitpoint->point);
}
return tracehit;
}
@ -187,11 +187,11 @@ TraceLine(const dmodel_t *model, const int traceflags,
break;
}
if (frontdist > ON_EPSILON && backdist > ON_EPSILON) {
if (frontdist > -ON_EPSILON && backdist > -ON_EPSILON) {
node = tnode->children[0];
continue;
}
if (frontdist < -ON_EPSILON && backdist < -ON_EPSILON) {
if (frontdist < ON_EPSILON && backdist < ON_EPSILON) {
node = tnode->children[1];
continue;
}