Skip to content

Commit

Permalink
fixup blindfold
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cbeck88 committed Feb 24, 2014
1 parent 1c4481e commit 874e9f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unit.cpp
Expand Up @@ -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))
Expand Down

0 comments on commit 874e9f0

Please sign in to comment.