diff options
author | Tim Angus <tim@ngus.net> | 2009-10-17 22:50:54 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:53 +0000 |
commit | f9cf64c46fc88787c71508d412cc65a205d856ab (patch) | |
tree | 4f7fa9042c03ac93f293e8a9e029cba149f62766 | |
parent | e3ae06926953e9c9da00e2c97e3ed8fee0e3cc6a (diff) |
* (bug #3705) Collision bugfix/optimisation from Tr3B
-rw-r--r-- | src/qcommon/cm_test.c | 3 |
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]; |