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-861f7616d084master
parent
7c4ae94a0d
commit
20bd0ab135
|
@ -160,17 +160,16 @@ static BOOL rayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist)
|
|||
}
|
||||
|
||||
/* Not true visibility - done on sensor range */
|
||||
|
||||
if(getRevealStatus())
|
||||
if (rayPlayer == selectedPlayer
|
||||
|| (bMultiPlayer && game.alliance == ALLIANCES_TEAMS
|
||||
&& aiCheckAlliances(selectedPlayer, rayPlayer)))
|
||||
{
|
||||
if ((UDWORD)rayPlayer == selectedPlayer
|
||||
|| (bMultiPlayer && game.alliance == ALLIANCES_TEAMS
|
||||
&& aiCheckAlliances(selectedPlayer, rayPlayer)))
|
||||
// can see opponent moving
|
||||
if(getRevealStatus())
|
||||
{
|
||||
// can see opponent moving
|
||||
avInformOfChange(map_coord(x), map_coord(y)); //reveal map
|
||||
psTile->activeSensor = true;
|
||||
}
|
||||
psTile->activeSensor = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue