From d6cbf3366e63e4e4333e49377ee994d26b266a6c Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 24 Aug 2007 00:32:53 +0000 Subject: * Merged ioq3-r1133 + PNG image loader + Non-gas dependent x86_64 VM + Collision optimisations + Slew of other bug fixes --- src/qcommon/cm_trace.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qcommon/cm_trace.c') diff --git a/src/qcommon/cm_trace.c b/src/qcommon/cm_trace.c index ee9540e3..c40e1013 100644 --- a/src/qcommon/cm_trace.c +++ b/src/qcommon/cm_trace.c @@ -847,6 +847,11 @@ void CM_TraceThroughLeaf( traceWork_t *tw, cLeaf_t *leaf ) { b->collided = qfalse; + if ( !BoundsIntersect( tw->bounds[0], tw->bounds[1], + b->bounds[0], b->bounds[1] ) ) { + continue; + } + CM_TraceThroughBrush( tw, b ); if ( !tw->trace.fraction ) { tw->trace.lateralFraction = 0.0f; -- cgit