From badbc6763d8235ec0e8524a14b8a2700dfbdc710 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 21 Mar 2011 07:10:16 +0000 Subject: [PATCH] enable another AABB overlap check, this time on point tests git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10957 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model_brush.c b/model_brush.c index 2ac04cdf..9baafae8 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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++) -- 2.39.2