aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/cm_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon/cm_test.c')
-rw-r--r--code/qcommon/cm_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/qcommon/cm_test.c b/code/qcommon/cm_test.c
index 8aeda35..5aee7ee 100644
--- a/code/qcommon/cm_test.c
+++ b/code/qcommon/cm_test.c
@@ -250,6 +250,10 @@ int CM_PointContents( const vec3_t p, clipHandle_t model ) {
brushnum = cm.leafbrushes[leaf->firstLeafBrush+k];
b = &cm.brushes[brushnum];
+ if ( !BoundsIntersectPoint( b->bounds[0], b->bounds[1], p ) ) {
+ continue;
+ }
+
// see if the point is in the brush
for ( i = 0 ; i < b->numsides ; i++ ) {
d = DotProduct( p, b->sides[i].plane->normal );