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

This commit is contained in:
Monster Iestyn 2018-12-14 21:22:13 +00:00
parent 623d1574ce
commit c1e0041a0b
1 changed files with 1 additions and 1 deletions

View File

@ -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,