summaryrefslogtreecommitdiff
path: root/source/com_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/com_local.h')
-rw-r--r--source/com_local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/com_local.h b/source/com_local.h
index e783c36..5903d13 100644
--- a/source/com_local.h
+++ b/source/com_local.h
@@ -708,6 +708,8 @@ char *CM_EntityString( cm_t *cm );
cnode_t *CM_NodeNum( cm_t *cm, int number );
cleaf_t *CM_LeafNum( cm_t *cm, int number );
+#define CM_NumNode( cm, node ) ( (node) ? ( (node) - (cm)->cache->nodes ) : -1 )
+
// creates a clipping hull for an arbitrary box
cnode_t *CM_HeadnodeForBox( vec3_t mins, vec3_t maxs );