rem: else if (LOBYTE (GLOBAL (CurrentActivity)) == WON_LAST_BATTLE) OutTakes ();
context: int Starcon2Main(void* blah){#if DEBUG_PSYTRON || CREATE_JOURNAL{int ac = argc;char **av = argv;while (--ac > 0){	++av;	if ((*av)[0] == '-')	{		switch ((*av)[1])		{#ifdef DEBUG_PSYTRON			case 'd':			{				extern BYTE debug_psytron;				debug_psytron = atoi (&(*av)[2]);				break;			}#endif //DEBUG_PSYTRON#if CREATE_JOURNAL			case 'j':				++battle_counter;				break;#endif //CREATE_JOURNAL		}	}}}#endif //DEBUG_PSYTRON || CREATE_JOURNAL						Logo ();		if (LoadKernel (0,0))	{		extern BOOLEAN StartGame (void);		fprintf (stderr, "We've loaded the Kernel\n");// OpenJournal ();		while (StartGame ())		{			InitSIS ();			InitGameClock ();			AddEvent (RELATIVE_EVENT, 0, 1, 0, HYPERSPACE_ENCOUNTER_EVENT);			AddEvent (ABSOLUTE_EVENT, 3, 17, START_YEAR, ARILOU_ENTRANCE_EVENT);			AddEvent (RELATIVE_EVENT, 0, 0, YEARS_TO_KOHRAH_VICTORY,					KOHR_AH_VICTORIOUS_EVENT);			AddEvent (RELATIVE_EVENT, 0, 0, 0, SLYLANDRO_RAMP_UP);			do			{				extern ACTIVITY NextActivity;#ifdef TESTINGCOUNT sc;extern COUNT _simple_count;sc = _simple_count;#endif //TESTING				SuspendGameClock ();				if (!((GLOBAL (CurrentActivity) | NextActivity) & CHECK_LOAD))					ZeroVelocityComponents (							&GLOBAL (velocity)							);						//not going into talking pet conversation				else if (GLOBAL (CurrentActivity) & CHECK_LOAD)					GLOBAL (CurrentActivity) = NextActivity;				if ((GLOBAL (CurrentActivity) & START_ENCOUNTER)						|| GET_GAME_STATE (CHMMR_BOMB_STATE) == 2)				{					GLOBAL (CurrentActivity) |= START_ENCOUNTER;					if (GET_GAME_STATE (GLOBAL_FLAGS_AND_DATA) == (BYTE)~0							|| GET_GAME_STATE (CHMMR_BOMB_STATE) == 2)						VisitStarBase ();					else						RaceCommunication ();					if (!(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD)))					{						GLOBAL (CurrentActivity) &= ~START_ENCOUNTER;						if (LOBYTE (GLOBAL (CurrentActivity)) == IN_INTERPLANETARY)							GLOBAL (CurrentActivity) |= START_INTERPLANETARY;					}				}				else if (GLOBAL (CurrentActivity) & START_INTERPLANETARY)				{					GLOBAL (CurrentActivity) = MAKE_WORD (IN_INTERPLANETARY, 0);					ExploreSolarSys ();#ifdef TESTING					if (!(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD))							&& GLOBAL_SIS (CrewEnlisted) != (COUNT)~0)					{						if (!(GLOBAL (CurrentActivity) & START_ENCOUNTER)								&& (CurStarDescPtr = FindStar (NULL_PTR,								&GLOBAL (autopilot), 0, 0)))						{							GLOBAL (autopilot.x) = ~0;							GLOBAL (autopilot.y) = ~0;							GLOBAL (ShipStamp.frame) = 0;							GLOBAL (CurrentActivity) |= START_INTERPLANETARY;						}					}#endif //TESTING				}				else				{					Task ArilouTask;										GLOBAL (CurrentActivity) = MAKE_WORD (IN_HYPERSPACE, 0);					ArilouTask = AssignTask (arilou_gate_task, 128,							"quasispace portal manager");					TaskSwitch ();					Battle ();					if (ArilouTask)						Task_SetState (ArilouTask, TASK_EXIT);				}#ifdef TESTING				if (_simple_count != sc)					fprintf (stderr, "%d difference!\n",							(int)_simple_count - (int)sc);#endif //TESTING				SetSemaphore (GraphicsSem);				SetFlashRect (NULL_PTR, (FRAME)0);				ClearSemaphore (GraphicsSem);				LastActivity = GLOBAL (CurrentActivity);				if (!(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD))						&& (LOBYTE (GLOBAL (CurrentActivity)) == WON_LAST_BATTLE								//if died for some reason						|| GLOBAL_SIS (CrewEnlisted) == (COUNT)~0))				{					if (GET_GAME_STATE (KOHR_AH_KILLED_ALL))						InitCommunication (BLACKURQ_CONVERSATION);							//surrendered to Ur-Quan					else if (LOBYTE (GLOBAL (CurrentActivity)) == WON_LAST_BATTLE)						OutTakes ();					else if (GLOBAL (CurrentActivity) & CHECK_RESTART)						GLOBAL (CurrentActivity) &= ~CHECK_RESTART;					break;				}			} while (!(GLOBAL (CurrentActivity) & CHECK_ABORT));			StopSound ();			UninitGameClock ();			UninitSIS ();		}//		CloseJournal ();	}	else	{		fprintf (stderr, "Kernel failed to load!\n");	}	FreeKernel ();	(void) blah;  /* Satisfying compiler (unused parameter) */	return(0);}