summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-17 22:50:54 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:53 +0000
commitf9cf64c46fc88787c71508d412cc65a205d856ab (patch)
tree4f7fa9042c03ac93f293e8a9e029cba149f62766 /src/qcommon
parente3ae06926953e9c9da00e2c97e3ed8fee0e3cc6a (diff)
* (bug #3705) Collision bugfix/optimisation from Tr3B
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/cm_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcommon/cm_test.c b/src/qcommon/cm_test.c
index 420a91f2..21963aa3 100644
--- a/src/qcommon/cm_test.c
+++ b/src/qcommon/cm_test.c
@@ -246,6 +246,9 @@ int CM_PointContents( const vec3_t p, clipHandle_t model ) {
leaf = &cm.leafs[leafnum];
}
+ if(leaf->area == -1)
+ return CONTENTS_SOLID;
+
contents = 0;
for (k=0 ; k<leaf->numLeafBrushes ; k++) {
brushnum = cm.leafbrushes[leaf->firstLeafBrush+k];