From 4ed02b90eada9ab3a9c57f47c26c9240ed29a04e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 21 Aug 2022 11:14:58 +0300 Subject: [PATCH 39/39] Cancel illegal activities on adjacent tiles when city removed In alien ruleset, city might have been providing water source for the irrigation activity in adjacent tile. See osdn #45408 Signed-off-by: Marko Lindqvist --- server/citytools.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/citytools.c b/server/citytools.c index d46bfe5a97..4a96a632de 100644 --- a/server/citytools.c +++ b/server/citytools.c @@ -1923,8 +1923,10 @@ void remove_city(struct city *pcity) sync_cities(); - /* At least sentried helicopters need to go idle, maybe others. */ - unit_activities_cancel_all_illegal_tile(pcenter); + /* At least sentried helicopters need to go idle, maybe others. + * In alien ruleset, city center might have provided water source + * for adjacent tile. */ + unit_activities_cancel_all_illegal_area(pcenter); } /************************************************************************//** -- 2.35.1