rem: harvest_space_junk (ElementPtr) PELEMENT ElementPtr;
add: harvest_space_junk (PELEMENT ElementPtr)
context: harvest_space_junk (ElementPtr)PELEMENT ElementPtr;{	BOOLEAN retval;	HELEMENT hElement, hNextElement;	retval = FALSE;	for (hElement = GetHeadElement ();			hElement; hElement = hNextElement)	{		ELEMENTPTR ObjPtr;		LockElement (hElement, &ObjPtr);		hNextElement = GetSuccElement (ObjPtr);		if (!(ObjPtr->state_flags				& (APPEARING | GOOD_GUY | BAD_GUY				| PLAYER_SHIP | FINITE_LIFE))				&& !GRAVITY_MASS (ObjPtr->mass_points)				&& CollisionPossible (ObjPtr, ElementPtr))		{//HARVEST_RANGE was originally (SPACE_HEIGHT * 3 / 8)#define HARVEST_RANGE (208 * 3 / 8)			SIZE dx, dy;			if ((dx = ObjPtr->next.location.x					- ElementPtr->next.location.x) < 0)				dx = -dx;			if ((dy = ObjPtr->next.location.y					- ElementPtr->next.location.y) < 0)				dy = -dy;			dx = WORLD_TO_DISPLAY (dx);			dy = WORLD_TO_DISPLAY (dy);			if (dx <= HARVEST_RANGE && dy <= HARVEST_RANGE					&& dx * dx + dy * dy <= HARVEST_RANGE * HARVEST_RANGE)			{				ObjPtr->life_span = 0;				ObjPtr->state_flags |= NONSOLID;				if (!retval)				{					STARSHIPPTR StarShipPtr;					retval = TRUE;					GetElementStarShip (ElementPtr, &StarShipPtr);					ProcessSound (SetAbsSoundIndex (							StarShipPtr->RaceDescPtr->ship_data.ship_sounds, 1));					DeltaEnergy (ElementPtr, MAX_ENERGY);				}			}		}		UnlockElement (hElement);	}	return (retval);}