]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
make the endless loop run in 3 milliseconds (fixes BIH TracePoint)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 Mar 2011 20:09:21 +0000 (20:09 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 25 Mar 2011 21:07:34 +0000 (22:07 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10962 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a6889a61c4e3f5ec4d52de6ae044dd65e588dd25

model_brush.c

index d9658a66fa710a4f00e6fea26a8e8e769d7d4227..60aaec8bc8e7d527af8a5c9e9ca7f6d32ac403a0 100644 (file)
@@ -5982,7 +5982,7 @@ static void Mod_CollisionBIH_TracePoint_RecursiveBIHNode(trace_t *trace, dp_mode
                node = model->collision_bih.nodes + nodenum;
 #if 1
                if (!BoxesOverlap(point, point, node->mins, node->maxs))
-                       continue;
+                       return;
 #endif
                if (node->type == BIH_UNORDERED)
                {