src/game/Strategic/Strategic_Movement.cc
static void SavePlayerGroupList(HWFILE const f, GROUP const* const g)
{
	// Save the number of nodes in the list
	UINT32 uiNumberOfNodesInList = 0;
	CFOR_EACH_PLAYER_IN_GROUP(p, g) ++uiNumberOfNodesInList;
	f->write(&uiNumberOfNodesInList, sizeof(UINT32));

	// Loop through and save only the players profile id
	CFOR_EACH_PLAYER_IN_GROUP(p, g)
	{
		// Save the ubProfile ID for this node
		const UINT32 uiProfileID = p->pSoldier->ubProfile;
		f->write(&uiProfileID, sizeof(UINT32));
	}
}
// Saves the Player's group list to the saved game file
Saves the Player's group list to the saved game file
Saves the Player ' s group list to the saved game file
static void SavePlayerGroupList(HWFILE const f, GROUP const* const g)
{
	UINT32 uiNumberOfNodesInList = 0;
	CFOR_EACH_PLAYER_IN_GROUP(p, g) ++uiNumberOfNodesInList;
	f->write(&uiNumberOfNodesInList, sizeof(UINT32));
	CFOR_EACH_PLAYER_IN_GROUP(p, g)
	{
		const UINT32 uiProfileID = p->pSoldier->ubProfile;
		f->write(&uiProfileID, sizeof(UINT32));
	}
}
static void SavePlayerGroupList ( HWFILE const f , GROUP const * const g ) { UINT32 uiNumberOfNodesInList = 0 ; CFOR_EACH_PLAYER_IN_GROUP ( p , g ) ++ uiNumberOfNodesInList ; f -> write ( & uiNumberOfNodesInList , sizeof ( UINT32 ) ) ; CFOR_EACH_PLAYER_IN_GROUP ( p , g ) { const UINT32 uiProfileID = p -> pSoldier -> ubProfile ; f -> write ( & uiProfileID , sizeof ( UINT32 ) ) ; } }
Saves the Player's group list to the saved game file
Saves the Player ' s group list to the saved game file
// Save the number of nodes in the list // Loop through and save only the players profile id // Save the ubProfile ID for this node