summaryrefslogtreecommitdiff
path: root/src/qcommon/cm_trace.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-08-24 00:32:53 +0000
committerTim Angus <tim@ngus.net>2007-08-24 00:32:53 +0000
commitd6cbf3366e63e4e4333e49377ee994d26b266a6c (patch)
tree18c6488dbd654cb747534fc7a1dcd240be492bdb /src/qcommon/cm_trace.c
parent9bb5d25cc24fd678660af34b9b19e21a37f09bd3 (diff)
* Merged ioq3-r1133
+ PNG image loader + Non-gas dependent x86_64 VM + Collision optimisations + Slew of other bug fixes
Diffstat (limited to 'src/qcommon/cm_trace.c')
-rw-r--r--src/qcommon/cm_trace.c5
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;