Permalink
Browse files

Fix commit 8c9e726 for visibility.

  • Loading branch information...
KJeff01 committed Dec 2, 2017
1 parent 629d437 commit e36ebcf38e76a4992878dec18f040f7db41851c7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/visibility.cpp
View
@@ -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;
}

0 comments on commit e36ebcf

Please sign in to comment.