From 47b276024e66385a45c2dd8113e8df466e68fa0e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 22 Jan 2018 12:29:16 +0200 Subject: [PATCH] Fixed compilation warnings reported by MSVC src\p_map.cpp(4857): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning) src\p_map.cpp(4858): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning) --- 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 6c269e8101..8e445862a3 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -4854,8 +4854,8 @@ bool P_LineTrace(AActor *t1, DAngle angle, double distance, FTraceResults trace; CheckLineData TData; TData.Caller = t1; - TData.ThruSpecies = (flags & TRF_THRUSPECIES); - TData.ThruActors = (flags & TRF_THRUACTORS); + TData.ThruSpecies = !!(flags & TRF_THRUSPECIES); + TData.ThruActors = !!(flags & TRF_THRUACTORS); TData.NumPortals = 0; DVector3 direction; double pc = pitch.Cos();