src/game/Strategic/Game_Init.cc
//This function is called when the game is REstarted.  Things that need to be reinited are placed in here
This function is called when the game is REstarted.  Things that need to be reinited are placed in here
This function is called when the game is REstarted . Things that need to be reinited are placed in here
void ReStartingGame()
{
	gfGamePaused = TRUE;
	SetWorldSectorInvalid();
	SetMusicMode(MUSIC_NONE);
	SoundStopAll();
	gubScreenCount = 0;
	InitTacticalSave();
	FOR_EACH_SOLDIER(i) TacticalRemoveSoldier(*i);
	InitOverhead( );
	ShutDownEmailList();
	InitLaptopAndLaptopScreens();
	LaptopScreenInit();
	LoadMercProfiles( );
	ReloadAllQuoteFiles();
	ShopKeeperScreenInit();
	TrashWorld();
	InitHelpScreenSystem();
	EmptyDialogueQueue( );
	gsCurInterfacePanel = TEAM_PANEL;
	DeleteAllStrategicEvents();
	DeleteCreatureDirectives();
	gTacticalStatus.fHasAGameBeenStarted = FALSE;
	gpCustomizableTimerCallback = NULL;
	RESET_CHEAT_LEVEL();
}
void ReStartingGame ( ) { gfGamePaused = TRUE ; SetWorldSectorInvalid ( ) ; SetMusicMode ( MUSIC_NONE ) ; SoundStopAll ( ) ; gubScreenCount = 0 ; InitTacticalSave ( ) ; FOR_EACH_SOLDIER ( i ) TacticalRemoveSoldier ( * i ) ; InitOverhead ( ) ; ShutDownEmailList ( ) ; InitLaptopAndLaptopScreens ( ) ; LaptopScreenInit ( ) ; LoadMercProfiles ( ) ; ReloadAllQuoteFiles ( ) ; ShopKeeperScreenInit ( ) ; TrashWorld ( ) ; InitHelpScreenSystem ( ) ; EmptyDialogueQueue ( ) ; gsCurInterfacePanel = TEAM_PANEL ; DeleteAllStrategicEvents ( ) ; DeleteCreatureDirectives ( ) ; gTacticalStatus . fHasAGameBeenStarted = FALSE ; gpCustomizableTimerCallback = NULL ; RESET_CHEAT_LEVEL ( ) ; }
This function is called when the game is REstarted.
This function is called when the game is REstarted .
//Pause the game //Reset the sectors //we are going to restart a game so initialize the variable so we can initialize a new game //Loop through all the soldier and delete them all // Re-init overhead... //Reset the email list //Reinit the laptopn screen variables //Reload the Merc profiles // Reload quote files //Initialize the ShopKeeper Interface ( arms dealer inventory, etc. ) //Delete the world info //Init the help screen system //Make sure the game starts in the TEAM panel ( it wasnt being reset ) //Delete all the strategic events //Delete creature lair, if any //This function gets called when ur in a game a click the quit to main menu button, therefore no game is in progress // Reset timer callbacks