rem: || (ElementPtr->state_flags & APPEARING))
add: )
context: sis_hyper_preprocess (PELEMENT ElementPtr){	SIZE udx, udy, dx, dy;	SIZE AccelerateDirection;	STARSHIPPTR StarShipPtr;	if (ElementPtr->state_flags & APPEARING)	{		ElementPtr->velocity = GLOBAL (velocity);	}	AccelerateDirection = 0;	GetElementStarShip (ElementPtr, &StarShipPtr);	++StarShipPtr->weapon_counter; /* no shooting in hyperspace! */	if ((GLOBAL (autopilot)).x == ~0			|| (GLOBAL (autopilot)).y == ~0			|| (StarShipPtr->cur_status_flags & (LEFT | RIGHT | THRUST)))	{LeaveAutoPilot:		(GLOBAL (autopilot)).x =				(GLOBAL (autopilot)).y = ~0;		if (!(StarShipPtr->cur_status_flags & THRUST)				|| (GLOBAL_SIS (FuelOnBoard) == 0				&& GET_GAME_STATE (ARILOU_SPACE_SIDE) <= 1))		{			AccelerateDirection = -1;			GetCurrentVelocityComponents (&ElementPtr->velocity,					&dx, &dy);			udx = dx << 4;			udy = dy << 4;			StarShipPtr->cur_status_flags &= ~THRUST;		}	}	else	{		SIZE facing;		POINT universe;		universe.x = LOGX_TO_UNIVERSE (GLOBAL_SIS (log_x));		universe.y = LOGY_TO_UNIVERSE (GLOBAL_SIS (log_y));		udx = (GLOBAL (autopilot)).x - universe.x;		udy = -((GLOBAL (autopilot)).y - universe.y);		if ((dx = udx) < 0)			dx = -dx;		if ((dy = udy) < 0)			dy = -dy;		if (dx <= 1 && dy <= 1)			goto LeaveAutoPilot;		facing = NORMALIZE_FACING (ANGLE_TO_FACING (ARCTAN (udx, udy)));		if ((StarShipPtr->cur_status_flags & SHIP_AT_MAX_SPEED)				|| (ElementPtr->state_flags & APPEARING))		{			if (NORMALIZE_FACING (StarShipPtr->ShipFacing					+ ANGLE_TO_FACING (QUADRANT)					- facing) > ANGLE_TO_FACING (HALF_CIRCLE))				goto LeaveAutoPilot;			facing = StarShipPtr->ShipFacing;		}		else if ((int)facing != (int)StarShipPtr->ShipFacing				&& ElementPtr->turn_wait == 0)		{			if (NORMALIZE_FACING (					StarShipPtr->ShipFacing - facing					) >= ANGLE_TO_FACING (HALF_CIRCLE))			{				facing = NORMALIZE_FACING (facing - 1);				StarShipPtr->cur_status_flags |= RIGHT;			}			else if ((int)StarShipPtr->ShipFacing != (int)facing)			{				facing = NORMALIZE_FACING (facing + 1);				StarShipPtr->cur_status_flags |= LEFT;			}			if ((int)facing == (int)StarShipPtr->ShipFacing)			{				ZeroVelocityComponents (&ElementPtr->velocity);			}		}		GetCurrentVelocityComponents (				&ElementPtr->velocity,				&dx, &dy				);		if ((GLOBAL_SIS (FuelOnBoard)				|| GET_GAME_STATE (ARILOU_SPACE_SIDE) > 1)				&& (int)facing == (int)StarShipPtr->ShipFacing)		{			StarShipPtr->cur_status_flags |= SHIP_AT_MAX_SPEED;			AccelerateDirection = 1;		}		else		{			AccelerateDirection = -1;			udx = dx << 4;			udy = dy << 4;		}	}	if (ElementPtr->thrust_wait == 0 && AccelerateDirection)	{		COUNT dist;		SIZE speed, velocity_increment;		velocity_increment = WORLD_TO_VELOCITY (				StarShipPtr->RaceDescPtr->characteristics.thrust_increment				);		if ((dist = square_root ((long)udx * udx + (long)udy * udy)) == 0)			dist = 1; /* prevent divide by zero */		speed = square_root ((long)dx * dx + (long)dy * dy);		if (AccelerateDirection < 0)		{			dy = (speed / velocity_increment - 1)					* velocity_increment;			if (dy < speed - velocity_increment)				dy = speed - velocity_increment;			if ((speed = dy) < 0)				speed = 0;			StarShipPtr->cur_status_flags &= ~SHIP_AT_MAX_SPEED;		}		else		{			SIZE max_velocity;			AccelerateDirection = 0;			max_velocity = WORLD_TO_VELOCITY (					StarShipPtr->RaceDescPtr->characteristics.max_thrust					);			dy = (speed / velocity_increment + 1)					* velocity_increment;			if (dy < speed + velocity_increment)				dy = speed + velocity_increment;			if ((speed = dy) > max_velocity)			{				speed = max_velocity;				StarShipPtr->cur_status_flags |= SHIP_AT_MAX_SPEED;			}		}		dx = (SIZE)((long)udx * speed / (long)dist);		dy = (SIZE)((long)udy * speed / (long)dist);		SetVelocityComponents (&ElementPtr->velocity, dx, dy);		ElementPtr->thrust_wait =				StarShipPtr->RaceDescPtr->characteristics.thrust_wait;	}}