2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-07-21 12:46:32 +03:00

Fixed missing PM_TRACELINE_* usages

This commit is contained in:
WPMGPRoSToTeMa 2018-09-28 02:55:51 +03:00
parent 2a165a646b
commit 85f27fcf4e

View File

@ -578,9 +578,9 @@ struct pmtrace_s* EXT_FUNC PM_TraceLine(float *start, float *end, int flags, int
oldhull = pmove->usehull; oldhull = pmove->usehull;
pmove->usehull = usehull; pmove->usehull = usehull;
if (flags) if (flags != PM_TRACELINE_PHYSENTSONLY)
{ {
if (flags == 1) if (flags == PM_TRACELINE_ANYVISIBLE)
tr = _PM_PlayerTrace(start, end, PM_NORMAL, pmove->numvisent, pmove->visents, ignore_pe, NULL); tr = _PM_PlayerTrace(start, end, PM_NORMAL, pmove->numvisent, pmove->visents, ignore_pe, NULL);
} }
else else
@ -598,7 +598,7 @@ struct pmtrace_s* EXT_FUNC PM_TraceLineEx(float *start, float *end, int flags, i
oldhull = pmove->usehull; oldhull = pmove->usehull;
pmove->usehull = usehull; pmove->usehull = usehull;
if (flags) if (flags != PM_TRACELINE_PHYSENTSONLY)
{ {
tr = _PM_PlayerTrace(start, end, PM_NORMAL, pmove->numvisent, pmove->visents, -1, pfnIgnore); tr = _PM_PlayerTrace(start, end, PM_NORMAL, pmove->numvisent, pmove->visents, -1, pfnIgnore);
} }