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:
parent
1c4481eae4
commit
874e9f0e74
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue