diff options
Diffstat (limited to 'src/qcommon/cm_trace.c')
-rw-r--r-- | src/qcommon/cm_trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |