Merge branch 'dirt5' into testbuild
This commit is contained in:
commit
172c81a556
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue