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)
This commit is contained in:
alexey.lysiuk 2018-01-22 12:29:16 +02:00
parent 76d594f952
commit 47b276024e

View file

@ -4854,8 +4854,8 @@ bool P_LineTrace(AActor *t1, DAngle angle, double distance,
FTraceResults trace; FTraceResults trace;
CheckLineData TData; CheckLineData TData;
TData.Caller = t1; TData.Caller = t1;
TData.ThruSpecies = (flags & TRF_THRUSPECIES); TData.ThruSpecies = !!(flags & TRF_THRUSPECIES);
TData.ThruActors = (flags & TRF_THRUACTORS); TData.ThruActors = !!(flags & TRF_THRUACTORS);
TData.NumPortals = 0; TData.NumPortals = 0;
DVector3 direction; DVector3 direction;
double pc = pitch.Cos(); double pc = pitch.Cos();