aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/cm_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon/cm_trace.c')
-rw-r--r--code/qcommon/cm_trace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/qcommon/cm_trace.c b/code/qcommon/cm_trace.c
index bc52c28..44ca5f8 100644
--- a/code/qcommon/cm_trace.c
+++ b/code/qcommon/cm_trace.c
@@ -685,6 +685,11 @@ void CM_TraceThroughLeaf( traceWork_t *tw, cLeaf_t *leaf ) {
continue;
}
+ if ( !BoundsIntersect( tw->bounds[0], tw->bounds[1],
+ b->bounds[0], b->bounds[1] ) ) {
+ continue;
+ }
+
CM_TraceThroughBrush( tw, b );
if ( !tw->trace.fraction ) {
return;