From 4fd1f1fc3544254c4425c7bf81a3bff11ed4a769 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 26 Jun 2021 13:18:50 +0300 Subject: [PATCH 22/22] is_terrain_needed(): Check if terrain is climate change target See osdn #42577 Signed-off-by: Marko Lindqvist --- tools/ruledit/validity.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/ruledit/validity.c b/tools/ruledit/validity.c index db372977e4..95565002ab 100644 --- a/tools/ruledit/validity.c +++ b/tools/ruledit/validity.c @@ -288,7 +288,11 @@ bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data) if (pother != pterr && (pother->irrigation_result == pterr || pother->mining_result == pterr - || pother->transform_result == pterr)) { + || pother->transform_result == pterr + || pother->warmer_wetter_result == pterr + || pother->warmer_drier_result == pterr + || pother->cooler_wetter_result == pterr + || pother->cooler_drier_result == pterr)) { cb(terrain_rule_name(pother), data); needed = TRUE; } -- 2.30.2