Hack to fix old savegames. Closes ticket:1541

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9626 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-02-04 18:06:27 +00:00 committed by Git SVN Gateway
parent a5bb6acfc8
commit 7fbb31a561
1 changed files with 1 additions and 0 deletions

View File

@ -2506,6 +2506,7 @@ BOOL loadGame(const char *pGameToLoad, BOOL keepObjects, BOOL freeMem, BOOL User
for(j=0; j<MAX_PLAYERS; j++)
{
alliances[i][j] = saveGameData.alliances[i][j];
if (i == j) alliances[i][j] = ALLIANCE_FORMED; // hack to fix old savegames
if (game.alliance == ALLIANCES_TEAMS && alliances[i][j] == ALLIANCE_FORMED)
{
alliancebits[i] |= 1 << j;