X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_collision.c;h=3275a75168936625aea299ebba69032d027312d4;hb=b769580e4d658b9d325d4647ddf6e254e78b25f6;hp=76f41263deddcbb40a1d8d29666e44b8aa160ab0;hpb=cd044e68c6ad1bcf15868a7f203b3cd5e146c29e;p=xonotic%2Fdarkplaces.git diff --git a/cl_collision.c b/cl_collision.c index 76f41263..3275a751 100644 --- a/cl_collision.c +++ b/cl_collision.c @@ -74,7 +74,7 @@ trace_t CL_TraceBox(const vec3_t start, const vec3_t mins, const vec3_t maxs, co trace.realfraction = 1; if (ent->model && ent->model->TraceBox) - ent->model->TraceBox(ent->model, 0, &trace, start, mins, maxs, endtransformed, hitsupercontentsmask); + ent->model->TraceBox(ent->model, 0, &trace, starttransformed, mins, maxs, endtransformed, hitsupercontentsmask); // LordHavoc: take the 'best' answers from the new trace and combine with existing data if (trace.allsolid) @@ -275,25 +275,8 @@ void CL_FindNonSolidLocation(const vec3_t in, vec3_t out, vec_t radius) cl.worldmodel->brush.FindNonSolidLocation(cl.worldmodel, in, out, radius); } -int CL_PointQ1Contents(const vec3_t p) -{ - return Mod_Q1BSP_NativeContentsFromSuperContents(NULL, CL_TraceBox(p, vec3_origin, vec3_origin, p, true, NULL, 0, false).startsupercontents); - /* - // FIXME: check multiple brush models - if (cl.worldmodel && cl.worldmodel->brush.PointContentsQ1) - return cl.worldmodel->brush.PointContentsQ1(cl.worldmodel, p); - return 0; - */ -} - int CL_PointSuperContents(const vec3_t p) { return CL_TraceBox(p, vec3_origin, vec3_origin, p, true, NULL, 0, false).startsupercontents; - /* - // FIXME: check multiple brush models - if (cl.worldmodel && cl.worldmodel->brush.PointContentsQ1) - return cl.worldmodel->brush.PointContentsQ1(cl.worldmodel, p); - return 0; - */ }