From afe0fd7999c486e0699fefb64ffcad97536a6dd8 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 21 Mar 2011 07:08:25 +0000 Subject: [PATCH] increased bih traceline speed by nearly 50% by enabling an additional AABB overlap check git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10956 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_brush.c b/model_brush.c index b643aa4a..2ac04cdf 100644 --- a/model_brush.c +++ b/model_brush.c @@ -6047,7 +6047,7 @@ static void Mod_CollisionBIH_TraceLine_RecursiveBIHNode(trace_t *trace, dp_model for (;;) { node = bih->nodes + nodenum; -#if 0 +#if 1 if (!BoxesOverlap(segmentmins, segmentmaxs, node->mins, node->maxs)) return; #endif -- 2.39.2