Example #1
0
//===========================================================================
//
// Parameter:           -
// Returns:             -
// Changes Globals:     -
//===========================================================================
void FreeWeightConfig(weightconfig_t * config)
{
	if(!LibVarGetValue("bot_reloadcharacters"))
	{
		return;
	}
	FreeWeightConfig2(config);
}								//end of the function FreeWeightConfig
Example #2
0
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
Example #3
0
/*
=======================================================================================================================================
BotShutdownWeights
=======================================================================================================================================
*/
void BotShutdownWeights(void) {
	int i;

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