From 1ee6e55f9134124ac0bcefbdd212b0c6a9f8d113 Mon Sep 17 00:00:00 2001 From: Dino Date: Sat, 30 Aug 2025 17:37:00 -0400 Subject: [PATCH] #1639, add anarchy and rapture fields to struct packet_city_info --- client/packhand.c | 3 +++ common/networking/packets.def | 3 +++ server/citytools.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/client/packhand.c b/client/packhand.c index 94ba03cf6d..ab77593779 100644 --- a/client/packhand.c +++ b/client/packhand.c @@ -855,6 +855,9 @@ void handle_city_info(const struct packet_city_info *packet) pcity->was_happy = packet->was_happy; pcity->had_famine = packet->had_famine; + pcity->anarchy = packet->anarchy; + pcity->rapture = packet->rapture; + pcity->turn_founded = packet->turn_founded; pcity->turn_last_built = packet->turn_last_built; diff --git a/common/networking/packets.def b/common/networking/packets.def index ecafd9df02..f0ee44c753 100644 --- a/common/networking/packets.def +++ b/common/networking/packets.def @@ -766,6 +766,9 @@ PACKET_CITY_INFO = 31; sc, lsend, is-game-info, force, cancel(PACKET_CITY_SHORT_ BOOL did_buy, did_sell, was_happy; BOOL had_famine; + UINT16 anarchy; + UINT16 rapture; + BOOL diplomat_investigate; UINT8 walls; SINT8 city_image; diff --git a/server/citytools.c b/server/citytools.c index 2ca322957a..1081f3bfc2 100644 --- a/server/citytools.c +++ b/server/citytools.c @@ -2689,6 +2689,9 @@ void package_city(struct city *pcity, struct packet_city_info *packet, packet->was_happy = pcity->was_happy; packet->had_famine = pcity->had_famine; + packet->anarchy = pcity->anarchy; + packet->rapture = pcity->rapture; + packet->walls = city_citywalls_gfx(pcity); packet->style = pcity->style; packet->city_image = get_city_bonus(pcity, EFT_CITY_IMAGE); -- 2.31.0