]> git.xonotic.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)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 25 Mar 2011 21:07:32 +0000 (22:07 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10957 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=badbc6763d8235ec0e8524a14b8a2700dfbdc710

model_brush.c

index d28fbb05857cb8fdfe5878a83a6559a6d805eba9..d9658a66fa710a4f00e6fea26a8e8e769d7d4227 100644 (file)
@@ -5980,6 +5980,10 @@ static void Mod_CollisionBIH_TracePoint_RecursiveBIHNode(trace_t *trace, dp_mode
        while (nodenum >= 0)
        {
                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++)