allied planned unit are always visible under fog

This commit is contained in:
gfgtdf 2015-06-02 23:58:12 +02:00
parent f735f7f283
commit aab8c00039

View File

@ -2098,6 +2098,9 @@ bool unit::is_visible_to_team(team const& team, gamemap const& map, bool const s
return true;
if (team.is_enemy(side()) && invisible(loc))
return false;
// allied planned moves are also visible under fog. (we assume that fake units on the map are always whiteboard markers)
if (!team.is_enemy(side()) && underlying_id_.is_fake())
return true;
if (team.fogged(loc))
return false;
return true;