fixup blindfold

fix a logic error -- actually if we are blindfolded, it doesn't matter if we are an observer, we shouldn't see any units. also this is more efficient.
This commit is contained in:
Chris Beck 2014-02-24 17:51:42 -05:00
parent 1c4481eae4
commit 874e9f0e74

View file

@ -2869,8 +2869,8 @@ bool unit::is_visible_to_team(team const& team, bool const see_all, gamemap cons
return false;
if (see_all)
return true;
if (is_observer() && resources::screen->is_blindfolded())
return false; //since see_all must be false in this case, this means we are a "blind observer"
if (resources::screen->is_blindfolded())
return false;
if (team.is_enemy(side()) && invisible(loc))
return false;
if (team.is_enemy(side()) && team.fogged(loc))