Yet another pathfind namespace fix.

This commit is contained in:
Eric S. Raymond 2010-01-26 01:04:41 +00:00
parent 5017d20a0b
commit cd1859b299

View file

@ -634,7 +634,7 @@ void default_move_to_targets_phase::access_points(const move_map& srcdst, const
const map_location& loc = i->second;
if (int(distance_between(loc,dst)) <= u_it->second.total_movement()) {
pathfind::shortest_path_calculator calc(u_it->second, current_team(), units_, get_info().teams, map_);
pathfind::plain_route rt = pathfind::a_star_search(loc, dst, u_it->second.total_movement(), &calc, map_.w(), map_.h());
pathfind::plain_route rt = a_star_search(loc, dst, u_it->second.total_movement(), &calc, map_.w(), map_.h());
if(rt.steps.empty() == false) {
out.push_back(loc);
}