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:
Ali El Gariani 2007-06-13 08:21:40 +00:00
parent 05e271f200
commit 505e760245

View file

@ -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;
}