mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
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:
parent
c3491de466
commit
afed5e62eb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue