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

Function CM_ClearMap

code/qcommon/cm_load.cpp:881–896  ·  view source on GitHub ↗

================== CM_ClearMap ================== */

Source from the content-addressed store, hash-verified

879==================
880*/
881void CM_ClearMap( void )
882{
883 int i;
884
885 CM_OrOfAllContentsFlagsInMap = CONTENTS_BODY;
886
887 memset( &cmg, 0, sizeof( cmg ) );
888 CM_ClearLevelPatches();
889
890 for(i = 0; i < NumSubBSP; i++)
891 {
892 memset(&SubBSP[i], 0, sizeof(SubBSP[0]));
893 }
894 NumSubBSP = 0;
895 TotalSubModels = 0;
896}
897
898int CM_TotalMapContents()
899{

Callers 3

Com_ShutdownFunction · 0.70
CM_LoadMap_ActualFunction · 0.70
SV_SpawnServerFunction · 0.50

Calls 1

CM_ClearLevelPatchesFunction · 0.70

Tested by

no test coverage detected