[have_unit] now honor location

This commit is contained in:
Benjamin Drieu 2004-04-12 22:22:45 +00:00
parent 2d3df0f406
commit 7383a0afac

View file

@ -55,7 +55,7 @@ bool conditional_passed(game_state& state_of_game,
std::map<gamemap::location,unit>::const_iterator itor;
for(itor = units->begin(); itor != units->end(); ++itor) {
if(itor->second.hitpoints() > 0 && itor->second.matches_filter(**u)) {
if(itor->second.hitpoints() > 0 && game_events::unit_matches_filter(itor, **u)) {
break;
}
}