Skip to content

Commit

Permalink
Do not share ally vision when loading campaign saves.
Browse files Browse the repository at this point in the history
More of a game configuation issue affecting alliancesSharedVision() here, which
has its own ticket.

Closes ticket 4828.
  • Loading branch information
KJeff01 committed Nov 19, 2018
1 parent defae88 commit 30aa2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Expand Up @@ -1955,7 +1955,7 @@ bool loadGame(const char *pGameToLoad, bool keepObjects, bool freeMem, bool User
{
alliances[i][j] = ALLIANCE_FORMED; // hack to fix old savegames
}
if (alliancesSharedVision(game.alliance) && alliances[i][j] == ALLIANCE_FORMED)
if (bMultiPlayer && alliancesSharedVision(game.alliance) && alliances[i][j] == ALLIANCE_FORMED)
{
alliancebits[i] |= 1 << j;
}
Expand Down

0 comments on commit 30aa2a9

Please sign in to comment.