From: havoc Date: Mon, 21 Mar 2011 07:10:16 +0000 (+0000) Subject: enable another AABB overlap check, this time on point tests X-Git-Tag: xonotic-v0.6.0~163^2~589 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=badbc6763d8235ec0e8524a14b8a2700dfbdc710;p=xonotic%2Fdarkplaces.git 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 --- 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++)