src/game/Strategic/Game_Init.cc
void ReStartingGame()
{
	//Pause the game
	gfGamePaused = TRUE;

	//Reset the sectors
	SetWorldSectorInvalid();

	SetMusicMode(MUSIC_NONE);
	SoundStopAll();

	//we are going to restart a game so initialize the variable so we can initialize a new game
	gubScreenCount = 0;

	InitTacticalSave();

	//Loop through all the soldier and delete them all
	FOR_EACH_SOLDIER(i) TacticalRemoveSoldier(*i);

	// Re-init overhead...
	InitOverhead( );

	//Reset the email list
	ShutDownEmailList();

	//Reinit the laptopn screen variables
	InitLaptopAndLaptopScreens();
	LaptopScreenInit();

	//Reload the Merc profiles
	LoadMercProfiles( );

	// Reload quote files
	ReloadAllQuoteFiles();

	//Initialize the ShopKeeper Interface ( arms dealer inventory, etc. )
	ShopKeeperScreenInit();

	//Delete the world info
	TrashWorld();

	//Init the help screen system
	InitHelpScreenSystem();

	EmptyDialogueQueue( );


	//Make sure the game starts in the TEAM panel ( it wasnt being reset )
	gsCurInterfacePanel = TEAM_PANEL;

	//Delete all the strategic events
	DeleteAllStrategicEvents();

	//Delete creature lair, if any
	DeleteCreatureDirectives();

	//This function gets called when ur in a game a click the quit to main menu button, therefore no game is in progress
	gTacticalStatus.fHasAGameBeenStarted = FALSE;

	// Reset timer callbacks
	gpCustomizableTimerCallback = NULL;

	RESET_CHEAT_LEVEL();
}
//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