If any player in fixed teams mode got sat uplink, all players got to see entire map. Fixed.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9497 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-01-25 10:39:51 +00:00 committed by Git SVN Gateway
parent 8a97aa2393
commit 3156a4d9b4
1 changed files with 1 additions and 2 deletions

View File

@ -459,8 +459,7 @@ static inline bool hasSensorOnTile(MAPTILE *psTile, int player)
// Check if an ally can provide us with vision on this tile
for (k = 0; k < MAX_PLAYERS; k++)
{
if (getSatUplinkExists(k) ||
(psTile->watchers[k] > 0 && aiCheckAlliances(k, selectedPlayer)))
if (aiCheckAlliances(k, selectedPlayer) && (getSatUplinkExists(k) || psTile->watchers[k] > 0))
{
return true;
}