Yet another pathfind namespace fix.
This commit is contained in:
parent
5017d20a0b
commit
cd1859b299
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue