From 4ebdcb7b6de4ca46eac3e9f6860e5f9094299974 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 8 Mar 2016 11:55:40 +0100 Subject: [PATCH] - fixed: The result condition of a hitscan subtrace was never checked. --- src/p_trace.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_trace.cpp b/src/p_trace.cpp index 2e96db7c9..2dec3d9d5 100644 --- a/src/p_trace.cpp +++ b/src/p_trace.cpp @@ -842,7 +842,9 @@ bool FTraceInfo::TraceTraverse (int ptflags) } else if (in->isaline) { - if (!LineCheck(in)) break; + bool res = LineCheck(in); + if (aimdir == INT_MAX) return res; // signal for immediate abort + if (!res) break; } else if ((in->d.thing->flags & ActorMask) && in->d.thing != IgnoreThis) {