X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_collision.h;h=c4052035380be63a06b7b52312fa91dc95fa4a2f;hp=568a81fbfbd9a4f6194d84f9d554db9d0078cd76;hb=4bdfa2e9bcc9150a43d44e87d412997d47d5b745;hpb=43349b0c0595559aea996ec54b4682503f9a42e0 diff --git a/cl_collision.h b/cl_collision.h index 568a81fb..c4052035 100644 --- a/cl_collision.h +++ b/cl_collision.h @@ -2,14 +2,9 @@ #ifndef CL_COLLISION_H #define CL_COLLISION_H -// if contents is not zero, it will impact on content changes -// (leafs matching contents are considered empty, others are solid) -extern int cl_traceline_startcontents; // set by TraceLine - -float CL_TraceLine(const vec3_t start, const vec3_t end, vec3_t impact, vec3_t normal, int hitbmodels, entity_render_t **hitent, int hitsupercontentsmask); -float CL_SelectTraceLine(const vec3_t start, const vec3_t end, vec3_t impact, vec3_t normal, int *hitent, entity_render_t *ignoreent); +trace_t CL_TraceBox(const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int hitbmodels, int *hitent, int hitsupercontentsmask, qboolean hitplayers); +float CL_SelectTraceLine(const vec3_t start, const vec3_t end, vec3_t impact, vec3_t normal, int *hitent, entity_render_t *ignoreent, qboolean csqcents); void CL_FindNonSolidLocation(const vec3_t in, vec3_t out, vec_t radius); -int CL_PointQ1Contents(const vec3_t p); int CL_PointSuperContents(const vec3_t p); #endif