Skip to content

Commit

Permalink
Fix commit 8c9e726 for visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Dec 2, 2017
1 parent 629d437 commit e36ebcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visibility.cpp
Expand Up @@ -566,7 +566,7 @@ bool hasSharedVision(unsigned viewer, unsigned ally)
ASSERT_OR_RETURN(false, viewer < MAX_PLAYERS && ally < MAX_PLAYERS, "Bad viewer %u or ally %u.", viewer, ally);

//Do not share vision with the human player if not in multiplayer.
if (!bMultiPlayer && (viewer == 0 || ally == 0))
if (!bMultiPlayer && (viewer == 0 || ally == 0) && !aiCheckAlliances(viewer, ally))
{
return false;
}
Expand Down

0 comments on commit e36ebcf

Please sign in to comment.