From b63639d34c57ef2ec2e184840a94cfd1e206684a Mon Sep 17 00:00:00 2001 From: Dino Date: Sat, 12 Sep 2026 21:19:05 -0400 Subject: [PATCH] city_add_unit(): make new citizens do something useful RM #1618 --- server/unithand.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/unithand.c b/server/unithand.c index 48a779dc16..55c2ffddc1 100644 --- a/server/unithand.c +++ b/server/unithand.c @@ -4226,11 +4226,13 @@ static bool city_add_unit(struct player *pplayer, struct unit *punit, fc_assert_ret_val(amount > 0, FALSE); city_size_add(pcity, amount); + /* Make the new people something, otherwise city fails the checks */ pcity->specialists[DEFAULT_SPECIALIST] += amount; citizens_update(pcity, unit_nationality(punit)); - /* Refresh the city data. */ - city_refresh(pcity); + + /* Make the new people do something useful */ + auto_arrange_workers(pcity); /* this calls city_refresh(pcity) */ /* Notify the unit owner that the unit successfully joined the city. */ notify_player(pplayer, city_tile(pcity), E_CITY_BUILD, ftc_server, -- 2.31.0