mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-17 08:21:28 +00:00
Fix accidentally removed SectorPlane assignment. Added missing HitVector support.
This commit is contained in:
parent
0181f3195c
commit
f88dced8f8
3 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,7 @@ struct FLineTraceData
|
|||
F3DFloor *Hit3DFloor;
|
||||
FTextureID HitTexture;
|
||||
DVector3 HitLocation;
|
||||
DVector3 HitDir;
|
||||
double Distance;
|
||||
int NumPortals;
|
||||
int LineSide;
|
||||
|
|
|
@ -4898,6 +4898,7 @@ bool P_LineTrace(AActor *t1, DAngle angle, double distance,
|
|||
outdata->HitLine = trace.Line;
|
||||
outdata->HitSector = trace.Sector;
|
||||
outdata->Hit3DFloor = trace.ffloor;
|
||||
outdata->SectorPlane = (trace.HitType == TRACE_HitCeiling) ? 1 : 0;
|
||||
if ( trace.HitType == TRACE_HitWall )
|
||||
{
|
||||
outdata->LineSide = trace.Side;
|
||||
|
@ -4924,6 +4925,7 @@ bool P_LineTrace(AActor *t1, DAngle angle, double distance,
|
|||
}
|
||||
else outdata->HitTexture = trace.HitTexture;
|
||||
outdata->HitLocation = trace.HitPos;
|
||||
outdata->HitDir = trace.HitVector;
|
||||
outdata->Distance = trace.Distance;
|
||||
outdata->NumPortals = TData.NumPortals;
|
||||
outdata->HitType = trace.HitType;
|
||||
|
|
|
@ -47,6 +47,7 @@ struct FLineTraceData
|
|||
F3DFloor Hit3DFloor;
|
||||
TextureID HitTexture;
|
||||
Vector3 HitLocation;
|
||||
Vector3 HitDir;
|
||||
double Distance;
|
||||
int NumPortals;
|
||||
int LineSide;
|
||||
|
|
Loading…
Reference in a new issue