From bd07d57a3c3aa596dca2e964f5de49fad89434f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Lach?= Date: Mon, 9 Oct 2023 20:03:57 +0200 Subject: [PATCH] =?UTF-8?q?OSDN:!45889=20S=C5=82awomir=20Lach=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Send counter values of cities', once connection established. --- server/srv_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/srv_main.c b/server/srv_main.c index 520d938860..3f93917279 100644 --- a/server/srv_main.c +++ b/server/srv_main.c @@ -709,6 +709,14 @@ void send_all_info(struct conn_list *dest) cities_iterate(pcity) { package_and_send_worker_tasks(pcity); } cities_iterate_end; + + conn_list_iterate(dest, pconn) { + if (conn_controls_player(pconn)) { + city_list_iterate(pconn->playing->cities, pcity) { + city_counters_refresh(pcity); + } city_list_iterate_end; + } + } conn_list_iterate_end; } /**********************************************************************//** -- 2.42.0