Hack to fix old savegames. Closes ticket:1541
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9626 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
a5bb6acfc8
commit
7fbb31a561
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue