mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Gave the user data struct for CheckLineTrace a more unique name to avoid confusion with FLineTraceData
This commit is contained in:
parent
69e8c9ec6e
commit
15e7d9daba
1 changed files with 3 additions and 3 deletions
|
@ -4820,7 +4820,7 @@ DEFINE_ACTION_FUNCTION(AActor, LineAttack)
|
|||
// P_LineTrace
|
||||
//
|
||||
//==========================================================================
|
||||
struct LineTraceData
|
||||
struct CheckLineData
|
||||
{
|
||||
AActor *Caller;
|
||||
bool ThruSpecies;
|
||||
|
@ -4830,7 +4830,7 @@ struct LineTraceData
|
|||
|
||||
static ETraceStatus CheckLineTrace(FTraceResults &res, void *userdata)
|
||||
{
|
||||
LineTraceData *TData = (LineTraceData *)userdata;
|
||||
CheckLineData *TData = (CheckLineData *)userdata;
|
||||
if ( res.HitType == TRACE_CrossingPortal )
|
||||
{
|
||||
TData->NumPortals++;
|
||||
|
@ -4852,7 +4852,7 @@ bool P_LineTrace(AActor *t1, DAngle angle, double distance,
|
|||
double offsetside, FLineTraceData *outdata)
|
||||
{
|
||||
FTraceResults trace;
|
||||
LineTraceData TData;
|
||||
CheckLineData TData;
|
||||
TData.Caller = t1;
|
||||
TData.ThruSpecies = (flags & TRF_THRUSPECIES);
|
||||
TData.ThruActors = (flags & TRF_THRUACTORS);
|
||||
|
|
Loading…
Reference in a new issue