From 65f718d27a7135860327b7a6c37f0153e0817021 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 27 Oct 2022 22:54:46 +0300 Subject: [PATCH 35/35] Fix updating city name on client side See osdn #45987 Signed-off-by: Marko Lindqvist --- client/packhand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/packhand.c b/client/packhand.c index 6075d58cdc..2bc0a3d696 100644 --- a/client/packhand.c +++ b/client/packhand.c @@ -754,11 +754,11 @@ void handle_city_info(const struct packet_city_info *packet) && (pcity->food_stock != packet->food_stock || pcity->surplus[O_FOOD] != packet->surplus[O_FOOD])) || (gui_options.draw_city_trade_routes && trade_routes_changed); + + city_name_set(pcity, packet->name); } - - sz_strlcpy(pcity->name, packet->name); - - /* check data */ + + /* Check data */ city_size_set(pcity, 0); for (i = 0; i < FEELING_LAST; i++) { pcity->feel[CITIZEN_HAPPY][i] = packet->ppl_happy[i]; -- 2.35.1