//=========================================================================== // // Parameter: - // Returns: - // Changes Globals: - //=========================================================================== void FreeWeightConfig(weightconfig_t * config) { if(!LibVarGetValue("bot_reloadcharacters")) { return; } FreeWeightConfig2(config); } //end of the function FreeWeightConfig
void BotShutdownWeights(void) { int i; for (i = 0; i < MAX_WEIGHT_FILES; i++) { if (weightFileList[i]) { FreeWeightConfig2(weightFileList[i]); weightFileList[i] = NULL; } //end if } //end for } //end of the function BotShutdownWeights
/* ======================================================================================================================================= BotShutdownWeights ======================================================================================================================================= */ void BotShutdownWeights(void) { int i; for (i = 0; i < MAX_WEIGHT_FILES; i++) { if (weightFileList[i]) { FreeWeightConfig2(weightFileList[i]); weightFileList[i] = NULL; } } }
//=========================================================================== // // Parameter: - // Returns: - // Changes Globals: - //=========================================================================== void FreeWeightConfig(weightconfig_t *config) { if (!bot_reloadcharacters.integer) return; FreeWeightConfig2(config); } //end of the function FreeWeightConfig