Make sensor display key ('z') work with distance fog as well.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4720 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-04-21 08:18:57 +00:00
parent 7c4ae94a0d
commit 20bd0ab135
1 changed files with 6 additions and 7 deletions

View File

@ -160,17 +160,16 @@ static BOOL rayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist)
}
/* Not true visibility - done on sensor range */
if(getRevealStatus())
{
if ((UDWORD)rayPlayer == selectedPlayer
if (rayPlayer == selectedPlayer
|| (bMultiPlayer && game.alliance == ALLIANCES_TEAMS
&& aiCheckAlliances(selectedPlayer, rayPlayer)))
{
// can see opponent moving
if(getRevealStatus())
{
avInformOfChange(map_coord(x), map_coord(y)); //reveal map
psTile->activeSensor = true;
}
psTile->activeSensor = true;
}
}