add: && CurStarDescPtr
context: EventHandler (BYTE selector){	switch (selector)	{		case ARILOU_ENTRANCE_EVENT:			arilou_entrance_event ();			break;		case ARILOU_EXIT_EVENT:			arilou_exit_event ();			break;		case HYPERSPACE_ENCOUNTER_EVENT:			check_race_growth ();			if (LOBYTE (GLOBAL (CurrentActivity)) == IN_HYPERSPACE					&& GET_GAME_STATE (ARILOU_SPACE_SIDE) <= 1)			{				extern void check_hyperspace_encounter (void);				check_hyperspace_encounter ();			}			AddEvent (RELATIVE_EVENT, 0, 1, 0, HYPERSPACE_ENCOUNTER_EVENT);			break;		case KOHR_AH_VICTORIOUS_EVENT:			if (GET_GAME_STATE (UTWIG_SUPOX_MISSION))			{				AddEvent (RELATIVE_EVENT, 0, 0, 1, KOHR_AH_GENOCIDE_EVENT);				break;			}		case KOHR_AH_GENOCIDE_EVENT:			if (!GET_GAME_STATE (KOHR_AH_FRENZY)					&& LOBYTE (GLOBAL (CurrentActivity)) == IN_INTERPLANETARY					&& CurStarDescPtr->Index == SAMATRA_DEFINED)				AddEvent (RELATIVE_EVENT, 0, 7, 0, KOHR_AH_GENOCIDE_EVENT);			else				black_urquan_genocide ();			break;		case ADVANCE_PKUNK_MISSION:			pkunk_mission ();			break;		case ADVANCE_THRADD_MISSION:			thradd_mission ();			break;		case ZOQFOT_DISTRESS_EVENT:			if (LOBYTE (GLOBAL (CurrentActivity)) == IN_INTERPLANETARY					&& CurStarDescPtr->Index == ZOQFOT_DEFINED)				AddEvent (RELATIVE_EVENT, 0, 7, 0, ZOQFOT_DISTRESS_EVENT);			else			{				SET_GAME_STATE (ZOQFOT_DISTRESS, 1);				AddEvent (RELATIVE_EVENT, 6, 0, 0, ZOQFOT_DEATH_EVENT);			}			break;		case ZOQFOT_DEATH_EVENT:			if (LOBYTE (GLOBAL (CurrentActivity)) == IN_INTERPLANETARY					&& CurStarDescPtr->Index == ZOQFOT_DEFINED)				AddEvent (RELATIVE_EVENT, 0, 7, 0, ZOQFOT_DEATH_EVENT);			else if (GET_GAME_STATE (ZOQFOT_DISTRESS))			{				HSTARSHIP hZoqFot;				EXTENDED_SHIP_FRAGMENTPTR ZoqFotPtr;				hZoqFot = GetStarShipFromIndex (						&GLOBAL (avail_race_q), ZOQFOTPIK_SHIP						);				ZoqFotPtr = (EXTENDED_SHIP_FRAGMENTPTR)LockStarShip (						&GLOBAL (avail_race_q),						hZoqFot						);				ZoqFotPtr->ShipInfo.actual_strength = 0;				ZoqFotPtr->ShipInfo.ship_flags &= ~(GOOD_GUY | BAD_GUY);				UnlockStarShip (						&GLOBAL (avail_race_q),						hZoqFot						);				SET_GAME_STATE (ZOQFOT_DISTRESS, 2);			}			break;		case SHOFIXTI_RETURN_EVENT:			ActivateStarShip (SHOFIXTI_SHIP, 0);			GLOBAL (CrewCost) -= 2;				/* crew is not an issue anymore */			SET_GAME_STATE (CREW_PURCHASED0, 0);			SET_GAME_STATE (CREW_PURCHASED1, 0);			break;		case ADVANCE_UTWIG_SUPOX_MISSION:			utwig_supox_mission ();			break;		case SPATHI_SHIELD_EVENT:			if (LOBYTE (GLOBAL (CurrentActivity)) == IN_INTERPLANETARY					&& CurStarDescPtr->Index == SPATHI_DEFINED)				AddEvent (RELATIVE_EVENT, 0, 7, 0, SPATHI_SHIELD_EVENT);			else			{				HSTARSHIP hSpathi;				EXTENDED_SHIP_FRAGMENTPTR SpathiPtr;				hSpathi = GetStarShipFromIndex (						&GLOBAL (avail_race_q), SPATHI_SHIP						);				SpathiPtr = (EXTENDED_SHIP_FRAGMENTPTR)LockStarShip (						&GLOBAL (avail_race_q),						hSpathi						);				if (SpathiPtr->ShipInfo.actual_strength)				{					ActivateStarShip (SPATHI_SHIP, -1);					SET_GAME_STATE (SPATHI_SHIELDED_SELVES, 1);					SpathiPtr->ShipInfo.actual_strength = 0;				}				UnlockStarShip (						&GLOBAL (avail_race_q),						hSpathi						);			}			break;		case ADVANCE_ILWRATH_MISSION:			ilwrath_mission ();			break;		case ADVANCE_MYCON_MISSION:			mycon_mission ();			break;		case ARILOU_UMGAH_CHECK:			SET_GAME_STATE (ARILOU_CHECKED_UMGAH, 2);			break;		case YEHAT_REBEL_EVENT:		{			HSTARSHIP hRebel, hRoyalist;			EXTENDED_SHIP_FRAGMENTPTR RebelPtr, RoyalistPtr;			hRebel = GetStarShipFromIndex (					&GLOBAL (avail_race_q), YEHAT_REBEL_SHIP					);			RebelPtr = (EXTENDED_SHIP_FRAGMENTPTR)LockStarShip (					&GLOBAL (avail_race_q),					hRebel					);			hRoyalist = GetStarShipFromIndex (					&GLOBAL (avail_race_q), YEHAT_SHIP					);			RoyalistPtr = (EXTENDED_SHIP_FRAGMENTPTR)LockStarShip (					&GLOBAL (avail_race_q),					hRoyalist					);			RebelPtr->ShipInfo.actual_strength =					RoyalistPtr->ShipInfo.actual_strength =					RoyalistPtr->ShipInfo.actual_strength * 2 / 3;			RebelPtr->ShipInfo.loc.x = 5150;			RebelPtr->ShipInfo.loc.y = 0;			UnlockStarShip (					&GLOBAL (avail_race_q),					hRoyalist					);			UnlockStarShip (					&GLOBAL (avail_race_q),					hRebel					);			ActivateStarShip (YEHAT_REBEL_SHIP, SPHERE_TRACKING);			break;		}		case SLYLANDRO_RAMP_UP:			if (!GET_GAME_STATE (DESTRUCT_CODE_ON_SHIP))			{				BYTE ramp_factor;				ramp_factor = GET_GAME_STATE (SLYLANDRO_MULTIPLIER);				if (++ramp_factor <= 4)				{					SET_GAME_STATE (SLYLANDRO_MULTIPLIER, ramp_factor);					AddEvent (RELATIVE_EVENT, 0, 182, 0, SLYLANDRO_RAMP_UP);				}			}			break;		case SLYLANDRO_RAMP_DOWN:			{				BYTE ramp_factor;				ramp_factor = GET_GAME_STATE (SLYLANDRO_MULTIPLIER);				if (--ramp_factor)					AddEvent (RELATIVE_EVENT, 0, 23, 0, SLYLANDRO_RAMP_DOWN);				SET_GAME_STATE (SLYLANDRO_MULTIPLIER, ramp_factor);			}			break;	}}