void process_network_physics_model(
	void *data)
{
	init_physics_wad_data();

	if(data)
	{
		// check for M1 physics
		SDL_RWops *ops = SDL_RWFromConstMem(data, 8);
		uint32 cookie = SDL_ReadBE32(ops);
		if(cookie == M1_PHYSICS_MAGIC_COOKIE)
		{
			uint32 length= SDL_ReadBE32(ops);
			SDL_RWclose(ops);
			uint8 *s= (uint8 *)data;
			import_m1_physics_data_from_network(&s[8], length);
			return;
		}
		else
		{
			SDL_RWclose(ops);
		}

		struct wad_header header;
		struct wad_data *wad;
	
		wad= inflate_flat_data(data, &header);
		if(wad)
		{
			import_physics_wad_data(wad);
			free_wad(wad); /* Note that the flat data points into the wad. */
		}
	}
}
void import_definition_structures(
	void)
{
	struct wad_data *wad;
	bool bungie_physics;

	init_physics_wad_data();

	wad= get_physics_wad_data(&bungie_physics);
	if(wad)
	{
		/* Actually load it in.. */		
		import_physics_wad_data(wad);
		
		free_wad(wad);
	}
}
void process_network_physics_model(
	void *data)
{
	init_physics_wad_data();

	if(data)
	{
		struct wad_header header;
		struct wad_data *wad;
	
		wad= inflate_flat_data(data, &header);
		if(wad)
		{
			import_physics_wad_data(wad);
			free_wad(wad); /* Note that the flat data points into the wad. */
		}
	}
}
void import_definition_structures(
	void)
{
	init_physics_wad_data();

	if (physics_file_is_m1())
	{
		import_m1_physics_data();
	}
	else
	{
		struct wad_data *wad;
		bool bungie_physics;
		
		wad= get_physics_wad_data(&bungie_physics);
		if(wad)
		{
			/* Actually load it in.. */		
			import_physics_wad_data(wad);
			
			free_wad(wad);
		}
	}
}