]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
enable another AABB overlap check, this time on point tests
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Mar 2011 07:10:16 +0000 (07:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Mar 2011 07:10:16 +0000 (07:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10957 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 2ac04cdf060d707a41e515fd5538994f234dc9fb..9baafae8d3cacb060dc9209cd454dd981c44adec 100644 (file)
@@ -5978,6 +5978,10 @@ static void Mod_CollisionBIH_TracePoint_RecursiveBIHNode(trace_t *trace, dp_mode
        for(;;)
        {
                node = model->collision_bih.nodes + nodenum;
+#if 1
+               if (!BoxesOverlap(point, point, node->mins, node->maxs))
+                       continue;
+#endif
                if (node->type == BIH_UNORDERED)
                {
                        for (axis = 0;axis < BIH_MAXUNORDEREDCHILDREN && node->children[axis] >= 0;axis++)