trace.c: Undo part of cc36d8e that flipped the signs of ON_EPSILON for one of the checks in the TraceLine.

This fixes cracks in sunlight shadows spotted by Lunaran, and greatly improves the AO quality
This commit is contained in:
Eric Wasylishen 2015-01-21 13:32:52 -07:00
parent 11678eaa74
commit c51326e8b0
1 changed files with 2 additions and 2 deletions

View File

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