From 88796e7f229a090fcd6624d4554f794b90e94933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Lach?= Date: Sun, 6 Feb 2022 14:56:29 +0100 Subject: [PATCH] - Patch for testing --- common/counters.c | 7 +++++-- common/counters.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/counters.c b/common/counters.c index 5bbe8076e1..8ce1a96663 100644 --- a/common/counters.c +++ b/common/counters.c @@ -25,7 +25,8 @@ static struct counter counters[MAX_COUNTERS] = { - { "Owned", COUNTER_OWNED, CTGT_CITY, 0 } + { "Owned", COUNTER_OWNED, CTGT_CITY, 0 }, + { "Loyality", COUNTER_LOYALITY, CTGT_CITY, 2} }; static struct counter *counters_city[MAX_COUNTERS]; @@ -42,7 +43,9 @@ void counters_init(void) for (i = 0; i < MAX_COUNTERS; i++) { - if (counters[i].type == COUNTER_OWNED) { + if (counters[i].type == COUNTER_OWNED || + counters[i].type == COUNTER_LOYALITY + ) { /* City counter type */ counters_city[number_city_counters] = &counters[i]; counters[i].index = number_city_counters; diff --git a/common/counters.h b/common/counters.h index ec7c1a3683..6a6eb22d08 100644 --- a/common/counters.h +++ b/common/counters.h @@ -17,7 +17,7 @@ extern "C" { #endif /* __cplusplus */ -enum counter_type { COUNTER_OWNED = 0, COUNTER_COUNT }; +enum counter_type { COUNTER_OWNED = 0, COUNTER_LOYALITY, COUNTER_COUNT }; enum counter_target { CTGT_CITY }; -- 2.35.1