From bb37e423e1f434d2b8c707d9e4b5f16d8cc7c0de Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 3 Feb 2017 20:35:15 +0100 Subject: [PATCH] use UFL_FOLLOWED for optimization. --- src/move.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/move.c b/src/move.c index 0184d22ca..f06a0b901 100644 --- a/src/move.c +++ b/src/move.c @@ -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 = 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 */ for (ord = u->orders; ord; ord = ord->next) {