mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-19 07:51:43 +00:00
copy doom legacy's replacement for the den == 0.0 calc in fracdivline
This commit is contained in:
parent
623d1574ce
commit
c1e0041a0b
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue