From 9e65e036edb381ef9922e0ee8d46f0c8894503b9 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 ::stable-branch::merge=badbc6763d8235ec0e8524a14b8a2700dfbdc710 --- model_brush.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model_brush.c b/model_brush.c index d28fbb05..d9658a66 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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++) -- 2.39.2