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-861f7616d084master
parent
8a97aa2393
commit
3156a4d9b4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue