Gave the user data struct for CheckLineTrace a more unique name to avoid confusion with FLineTraceData

This commit is contained in:
Marisa Kirisame 2018-01-19 00:41:53 +01:00 committed by Christoph Oelckers
parent 69e8c9ec6e
commit 15e7d9daba

View file

@ -4820,7 +4820,7 @@ DEFINE_ACTION_FUNCTION(AActor, LineAttack)
// P_LineTrace // P_LineTrace
// //
//========================================================================== //==========================================================================
struct LineTraceData struct CheckLineData
{ {
AActor *Caller; AActor *Caller;
bool ThruSpecies; bool ThruSpecies;
@ -4830,7 +4830,7 @@ struct LineTraceData
static ETraceStatus CheckLineTrace(FTraceResults &res, void *userdata) static ETraceStatus CheckLineTrace(FTraceResults &res, void *userdata)
{ {
LineTraceData *TData = (LineTraceData *)userdata; CheckLineData *TData = (CheckLineData *)userdata;
if ( res.HitType == TRACE_CrossingPortal ) if ( res.HitType == TRACE_CrossingPortal )
{ {
TData->NumPortals++; TData->NumPortals++;
@ -4852,7 +4852,7 @@ bool P_LineTrace(AActor *t1, DAngle angle, double distance,
double offsetside, FLineTraceData *outdata) double offsetside, FLineTraceData *outdata)
{ {
FTraceResults trace; FTraceResults trace;
LineTraceData 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);