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
1 changed files with 2 additions and 2 deletions

View File

@ -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();