use UFL_FOLLOWED for optimization.

This commit is contained in:
Enno Rehling 2017-02-03 20:35:15 +01:00
parent 70b12ae6ca
commit bb37e423e1
1 changed files with 3 additions and 1 deletions

View File

@ -2061,7 +2061,9 @@ static const region_list *travel_i(unit * u, const region_list * route_begin,
route_end = cap_route(r, route_begin, route_end, movement_speed(u)); route_end = cap_route(r, route_begin, route_end, movement_speed(u));
route_end = travel_route(u, route_begin, route_end, ord, mode); route_end = travel_route(u, route_begin, route_end, ord, mode);
get_followers(u, r, route_end, followers); if (u->flags&UFL_FOLLOWED) {
get_followers(u, r, route_end, followers);
}
/* transportation */ /* transportation */
for (ord = u->orders; ord; ord = ord->next) { for (ord = u->orders; ord; ord = ord->next) {