Esempio n. 1
0
//========================================================================
//
// Parameter:				-
// Returns:					-
// Changes Globals:		-
//========================================================================
void BotFreeGoalState( int handle ) {
	if ( handle <= 0 || handle > MAX_CLIENTS ) {
		botimport.Print( PRT_FATAL, "goal state handle %d out of range\n", handle );
		return;
	} //end if
	if ( !botgoalstates[handle] ) {
		botimport.Print( PRT_FATAL, "invalid goal state handle %d\n", handle );
		return;
	} //end if
	BotFreeItemWeights( handle );
	FreeMemory( botgoalstates[handle] );
	botgoalstates[handle] = NULL;
} //end of the function BotFreeGoalState
Esempio n. 2
0
void BotFreeGoalState( int handle ) {
	if ( handle <= 0 || handle > MAX_BOTLIB_CLIENTS ) {
		BotImport_Print( PRT_FATAL, "goal state handle %d out of range\n", handle );
		return;
	}
	if ( !botgoalstates[ handle ] ) {
		BotImport_Print( PRT_FATAL, "invalid goal state handle %d\n", handle );
		return;
	}
	BotFreeItemWeights( handle );
	Mem_Free( botgoalstates[ handle ] );
	botgoalstates[ handle ] = NULL;
}