mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-31 09:15:13 +00:00
engine: common: pm_trace: fixed non portable code in PM_ConvertTrace
This commit is contained in:
parent
305b2579eb
commit
ee8098839e
@ -111,9 +111,17 @@ hull_t *PM_HullForBox( const vec3_t mins, const vec3_t maxs )
|
|||||||
|
|
||||||
void PM_ConvertTrace( trace_t *out, pmtrace_t *in, edict_t *ent )
|
void PM_ConvertTrace( trace_t *out, pmtrace_t *in, edict_t *ent )
|
||||||
{
|
{
|
||||||
memcpy( out, in, 48 ); // matched
|
out->allsolid = in->allsolid;
|
||||||
|
out->startsolid = in->startsolid;
|
||||||
|
out->inopen = in->inopen;
|
||||||
|
out->inwater = in->inwater;
|
||||||
|
out->fraction = in->fraction;
|
||||||
|
out->plane.dist = in->plane.dist;
|
||||||
out->hitgroup = in->hitgroup;
|
out->hitgroup = in->hitgroup;
|
||||||
out->ent = ent;
|
out->ent = ent;
|
||||||
|
|
||||||
|
VectorCopy( in->endpos, out->endpos );
|
||||||
|
VectorCopy( in->plane.normal, out->plane.normal );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user