From aab8c000390955e05692c83b66172cff96504356 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Tue, 2 Jun 2015 23:58:12 +0200 Subject: [PATCH] allied planned unit are always visible under fog --- src/unit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unit.cpp b/src/unit.cpp index a098a0987ec..9a7869034e7 100644 --- a/src/unit.cpp +++ b/src/unit.cpp @@ -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;