Merge pull request #478 from alexey-lysiuk/fix_path_traverse

Fixed intercept check in FPathTraverse
This commit is contained in:
coelckers 2016-01-16 13:15:52 +01:00
commit 7740a277d3

View file

@ -985,7 +985,7 @@ void FPathTraverse::AddLineIntercepts(int bx, int by)
P_MakeDivline (ld, &dl);
frac = P_InterceptVector (&trace, &dl);
if (frac < 0 || frac > 1) continue; // behind source or beyond end point
if (frac < 0 || frac > FRACUNIT) continue; // behind source or beyond end point
intercept_t newintercept;