mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +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;
|
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();
|
||||||
|
|
Loading…
Reference in a new issue