mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
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:
parent
76d594f952
commit
47b276024e
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue