From f9cf64c46fc88787c71508d412cc65a205d856ab Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 17 Oct 2009 22:50:54 +0000 Subject: * (bug #3705) Collision bugfix/optimisation from Tr3B --- src/qcommon/cm_test.c | 3 +++ 1 file changed, 3 insertions(+) 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 ; knumLeafBrushes ; k++) { brushnum = cm.leafbrushes[leaf->firstLeafBrush+k]; -- cgit