From 3129840a0486d5e26c53fa04bf3498d5cb5a30c7 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Wed, 25 Apr 2018 19:58:17 +0300 Subject: [PATCH] Only call additional LineCheck if there are 3D floors --- src/p_trace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_trace.cpp b/src/p_trace.cpp index 5041294bb8..eae7d6fd6c 100644 --- a/src/p_trace.cpp +++ b/src/p_trace.cpp @@ -637,7 +637,7 @@ cont: case TRACE_Skip: Results->HitType = TRACE_HitNone; - if (!special3dpass && (TraceFlags & TRACE_3DCallback)) + if (!special3dpass && (TraceFlags & TRACE_3DCallback) && entersector->e->XFloor.ffloors.Size()) return LineCheck(in, dist, hit, true); break;