]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix cullentities trace on q1bsp, it was broken by the
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Apr 2011 18:07:58 +0000 (18:07 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 18 Apr 2011 06:16:01 +0000 (08:16 +0200)
TraceLineAgainstSurfaces patch

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11060 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=11deecd5601e2287886073df31421201a2fc2a4f

model_brush.c

index 924cfcfe6ff81db6f4720daaa9d64482b87b1397..2bb27183e7f639be980fa602afc30f79ecdb58ec 100644 (file)
@@ -1157,7 +1157,7 @@ void Collision_ClipTrace_Point(trace_t *trace, const vec3_t cmins, const vec3_t
 static qboolean Mod_Q1BSP_TraceLineOfSight(struct model_s *model, const vec3_t start, const vec3_t end)
 {
        trace_t trace;
-       model->TraceLine(model, NULL, NULL, &trace, start, end, SUPERCONTENTS_VISBLOCKERMASK);
+       Mod_Q1BSP_TraceLine(model, NULL, NULL, &trace, start, end, SUPERCONTENTS_VISBLOCKERMASK);
        return trace.fraction == 1;
 }