Fixed a bug with 'marking some units as invisible when they are not'.
This commit is contained in:
parent
77c53db3ae
commit
04bbccfde2
1 changed files with 1 additions and 1 deletions
|
@ -2962,7 +2962,7 @@ bool unit::invisible(const map_location& loc,
|
|||
|
||||
// Test hidden status
|
||||
static const std::string hides("hides");
|
||||
bool is_inv = get_state(STATE_HIDDEN && get_ability_bool(hides,loc));
|
||||
bool is_inv = get_state(STATE_HIDDEN) && get_ability_bool(hides,loc);
|
||||
if(is_inv){
|
||||
for(unit_map::const_iterator u = units.begin(); u != units.end(); ++u) {
|
||||
if(teams[side_-1].is_enemy(u->second.side()) && tiles_adjacent(loc,u->first)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue