From 19b701728dd3d4040c8d0740a1a5353614a9310d Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Mon, 26 Mar 2018 21:23:34 +0200 Subject: [PATCH] Typo fix in linetrace flags checking. --- src/p_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index 50397d852..e9ba84132 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -4888,8 +4888,8 @@ bool P_LineTrace(AActor *t1, DAngle angle, double distance, ActorFlags aflags = (flags & TRF_ALLACTORS) ? ActorFlags::FromInt(0xFFFFFFFF) : MF_SHOOTABLE; int lflags = 0; - if ( !(lflags & TRF_THRUBLOCK) ) lflags |= ML_BLOCKEVERYTHING; - if ( !(lflags & TRF_THRUHITSCAN) ) lflags |= ML_BLOCKHITSCAN; + if ( !(flags & TRF_THRUBLOCK) ) lflags |= ML_BLOCKEVERYTHING; + if ( !(flags & TRF_THRUHITSCAN) ) lflags |= ML_BLOCKHITSCAN; int tflags = TRACE_ReportPortals; if ( flags & TRF_NOSKY ) tflags |= TRACE_NoSky;