From cbcc228481b9eef4cfb022808b66c485b9b366b4 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 27 Aug 2022 10:04:00 +0300 Subject: [PATCH 39/39] AI: Drop unused max_move_cost from find_something_to_kill() See osdn #45307 Signed-off-by: Marko Lindqvist --- ai/default/aiunit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ai/default/aiunit.c b/ai/default/aiunit.c index 391ebd0b0a..9cfd41d339 100644 --- a/ai/default/aiunit.c +++ b/ai/default/aiunit.c @@ -1149,7 +1149,6 @@ int find_something_to_kill(struct ai_type *ait, struct player *pplayer, struct unit *pdefender; /* Enemy city defender. */ int move_time; /* Turns needed to target. */ int reserves; - int max_move_cost = max_move_cost = 10 * unit_move_rate(punit); int attack; /* Our total attack value with reinforcements. */ int victim_count; /* Number of enemies there. */ int needferry; /* Cost of building a ferry boat. */ -- 2.35.1