commit message of 2007-06-13T07:59:48Z!alinkmaze@gmail.com was inaccurate...
...but gives the good idea: now allow search of your hidden units AND allied hidden units.
This commit is contained in:
parent
05e271f200
commit
505e760245
1 changed files with 1 additions and 1 deletions
|
@ -1759,7 +1759,7 @@ namespace events{
|
|||
if(std::search(name.begin(), name.end(),
|
||||
last_search_.begin(), last_search_.end(),
|
||||
chars_equal_insensitive) != name.end()) {
|
||||
if (ui->second.side() == gui_->viewing_team()+1
|
||||
if (!teams_[gui_->viewing_team()].is_enemy(ui->second.side())
|
||||
|| !ui->second.invisible(ui->first, units_,teams_)) {
|
||||
found = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue