mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 23:16:38 +00:00
allied planned unit are always visible under fog
This commit is contained in:
parent
f735f7f283
commit
aab8c00039
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user