mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Reinstate the DoublePrecisionDotProducts.
They are still needed for ericw's testcase (oms3).
This commit is contained in:
parent
706dc546a3
commit
f117e246b4
1 changed files with 4 additions and 4 deletions
|
@ -656,8 +656,8 @@ reenter:
|
|||
}
|
||||
else
|
||||
{
|
||||
t1 = DotProduct (plane->normal, p1) - plane->dist;
|
||||
t2 = DotProduct (plane->normal, p2) - plane->dist;
|
||||
t1 = DoublePrecisionDotProduct (plane->normal, p1) - plane->dist;
|
||||
t2 = DoublePrecisionDotProduct (plane->normal, p2) - plane->dist;
|
||||
}
|
||||
|
||||
/*if its completely on one side, resume on that side*/
|
||||
|
@ -714,8 +714,8 @@ reenter:
|
|||
midf = (t1 - DIST_EPSILON) / (t1 - t2);
|
||||
}
|
||||
|
||||
t1 = DotProduct (trace->plane.normal, ctx->start) - trace->plane.dist;
|
||||
t2 = DotProduct (trace->plane.normal, ctx->end) - trace->plane.dist;
|
||||
t1 = DoublePrecisionDotProduct (trace->plane.normal, ctx->start) - trace->plane.dist;
|
||||
t2 = DoublePrecisionDotProduct (trace->plane.normal, ctx->end) - trace->plane.dist;
|
||||
midf = (t1 - DIST_EPSILON) / (t1 - t2);
|
||||
|
||||
midf = CLAMP(0, midf, 1);
|
||||
|
|
Loading…
Reference in a new issue