From 846ba7252e3c74f30a7d992de93d782df1666cba Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 26 Jun 2021 13:16:21 +0300 Subject: [PATCH 36/36] 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 5663338a64..348859f702 100644 --- a/tools/ruledit/validity.c +++ b/tools/ruledit/validity.c @@ -305,7 +305,11 @@ bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data) if (pother != pterr && (pother->cultivate_result == pterr || pother->plant_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