From afed5e62ebe7b91970d6805a779ffdd77433fbdc Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 16 Jan 2016 13:21:15 +0200 Subject: [PATCH] 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 --- src/p_maputl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_maputl.cpp b/src/p_maputl.cpp index 85e9183c57..82907d10aa 100644 --- a/src/p_maputl.cpp +++ b/src/p_maputl.cpp @@ -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;