Skip to content
Snippets Groups Projects
Commit c1e0041a authored by Monster Iestyn's avatar Monster Iestyn
Browse files

copy doom legacy's replacement for the den == 0.0 calc in fracdivline

parent 623d1574
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ static polyvertex_t *fracdivline(fdivline_t *bsp, polyvertex_t *v1,
v2dy = bsp->dy;
den = v2dy*v1dx - v2dx*v1dy;
if (den == 0.0)
if (fabs(den) < 1.0E-36f) // avoid checking exactly for 0.0
return NULL; // parallel
// first check the frac along the polygon segment,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment