From 0e15c3b22ff5e0963c7acf9bed2e85407ed5e0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Lach?= Date: Tue, 21 Mar 2023 16:03:38 +0100 Subject: [PATCH] =?UTF-8?q?!OSDN:=20#47587:=20S=C5=82awomir=20Lach:=20slaw?= =?UTF-8?q?ek@lach.art.pl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Celebrated counter and disorder counter should be handled by client from now. Also, any further counter should be handled as well. diff --git a/client/packhand.c b/client/packhand.c index 4a900ff15f..a4713baa6e 100644 --- a/client/packhand.c +++ b/client/packhand.c @@ -5548,9 +5548,7 @@ void handle_ruleset_counter(const struct packet_ruleset_counter *packet) curr->target = packet->type; curr->def = packet->def; - if ((curr->type != CB_CITY_OWNED_TURNS - && curr->type != CB_CITY_CELEBRATION_TURNS - && curr->type != CB_CITY_DISORDER_TURNS) + if (!counter_behaviour_is_valid(curr->type) || curr->target != CTGT_CITY) { return; -- 2.40.0