From 51219908146feb32d32e09b53cefb60c64883440 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C5=82awomir=20Lach?= <slawek@lach.art.pl>
Date: Wed, 22 Mar 2023 14:35:30 +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 f4e02fa130..a4713baa6e 100644
--- a/client/packhand.c
+++ b/client/packhand.c
@@ -5548,7 +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
+  if (!counter_behaviour_is_valid(curr->type)
     || curr->target != CTGT_CITY) {
 
     return;
-- 
2.40.0

