mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
494a113920
- disallow bool as a return value for direct native calls because it only sets the lowest 8 bits of the return register. - changed return type for several functions from bool to int where the return type was the only thing blocking use as direct native call.
30 lines
738 B
C
30 lines
738 B
C
#ifndef P_LTRACEDATA_H
|
|
#define P_LTRACEDATA_H
|
|
|
|
//============================================================================
|
|
//
|
|
// Structure for passing detailed results of LineTrace to ZScript
|
|
//
|
|
//============================================================================
|
|
struct FLineTraceData
|
|
{
|
|
AActor *HitActor;
|
|
line_t *HitLine;
|
|
sector_t *HitSector;
|
|
F3DFloor *Hit3DFloor;
|
|
FTextureID HitTexture;
|
|
DVector3 HitLocation;
|
|
DVector3 HitDir;
|
|
double Distance;
|
|
int NumPortals;
|
|
int LineSide;
|
|
int LinePart;
|
|
int SectorPlane;
|
|
ETraceResult HitType;
|
|
};
|
|
|
|
int P_LineTrace(AActor *t1, DAngle angle, double distance,
|
|
DAngle pitch, int flags, double sz, double offsetforward,
|
|
double offsetside, FLineTraceData *outdata);
|
|
|
|
#endif
|