Fixed intercept check in FPathTraverse

Because frac variable has fixed_t type it must be compared with fixed one
Test case: try to break stained glass windows or open door at the beginning of Hexen's MAP01
This commit is contained in:
alexey.lysiuk 2016-01-16 13:21:15 +02:00
parent c3491de466
commit afed5e62eb

View file

@ -985,7 +985,7 @@ void FPathTraverse::AddLineIntercepts(int bx, int by)
P_MakeDivline (ld, &dl); P_MakeDivline (ld, &dl);
frac = P_InterceptVector (&trace, &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; intercept_t newintercept;