Ejemplo n.º 1
0
static void destroy_local_family (entity *en)
{
	destroy_local_entity_children (en, LIST_TYPE_KEYSITE_FORCE);

	destroy_local_entity_children (en, LIST_TYPE_PILOT);

	destroy_local_entity_children (en, LIST_TYPE_AIR_REGISTRY);
	destroy_local_entity_children (en, LIST_TYPE_GROUND_REGISTRY);
	destroy_local_entity_children (en, LIST_TYPE_SEA_REGISTRY);

	destroy_local_entity (en);
}
Ejemplo n.º 2
0
static void destroy_local_family (entity *en)
{

	destroy_local_entity_children (en, LIST_TYPE_MEMBER);

	destroy_local_entity (en);
}
Ejemplo n.º 3
0
static void destroy_local_family (entity *en)
{
	destroy_local_entity_children (en, LIST_TYPE_MOVEMENT_DEPENDENT);

	destroy_local_sound_effects (en);

	destroy_local_entity (en);
}
Ejemplo n.º 4
0
static void destroy_local (entity *en)
{
	bridge
		*raw;

	////////////////////////////////////////
	//
	// PRE-AMBLE
	//
	////////////////////////////////////////

	#if DEBUG_MODULE

	debug_log_entity_args (ENTITY_DEBUG_LOCAL, ENTITY_DEBUG_DESTROY, en);

	debug_log ("BR_DSTRY: destroying bridge %d", get_local_entity_index (en));

	#endif

	raw = get_local_entity_data (en);

	////////////////////////////////////////
	//
	// VALIDATE
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// DESTROY COMPONENTS
	//
	////////////////////////////////////////

	////////////////////////////////////////
	//
	// UNLINK FROM SYSTEM
	//
	////////////////////////////////////////

	

	destroy_local_entity_children (en, LIST_TYPE_SEGMENT);

	////////////////////////////////////////
	//
	// FREE ENTITY DATA
	//
	////////////////////////////////////////

	free_mem (raw);

	set_free_entity (en);
}