MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CM_SnapPVS

Function CM_SnapPVS

code/qcommon/cm_test.cpp:665–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665void CM_SnapPVS(vec3_t origin,byte *buffer)
666{
667 int clientarea;
668 int leafnum;
669 int i;
670
671 leafnum = CM_PointLeafnum (origin);
672 clientarea = CM_LeafArea (leafnum);
673
674 // calculate the visible areas
675 memset(buffer,0,MAX_MAP_AREA_BYTES);
676 CM_WriteAreaBits(buffer,clientarea);
677 for ( i = 0 ; i < MAX_MAP_AREA_BYTES/4 ; i++ ) {
678 ((int *)buffer)[i] = ((int *)buffer)[i] ^ -1;
679 }
680
681}
682
683

Callers 1

CL_CgameSystemCallsFunction · 0.85

Calls 3

CM_PointLeafnumFunction · 0.70
CM_LeafAreaFunction · 0.70
CM_WriteAreaBitsFunction · 0.70

Tested by

no test coverage detected