From 648a860793ce9a860b0c6de7cb02fa41dc56b088 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 9 Oct 2021 08:29:28 +0300 Subject: [PATCH 11/11] Sanity check that wonder upkeep is zero Reported by Lexxie See osdn #42994 Signed-off-by: Marko Lindqvist --- server/rssanity.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/rssanity.c b/server/rssanity.c index 45b283ef41..c4f881abcf 100644 --- a/server/rssanity.c +++ b/server/rssanity.c @@ -457,6 +457,12 @@ static bool rs_buildings(void) return FALSE; } + + if (is_wonder(pimprove) && pimprove->upkeep != 0) { + ruleset_error(LOG_ERROR, "%s is a wonder with a nonzero upkeep value", + improvement_rule_name(pimprove)); + return FALSE; + } } improvement_iterate_end; return TRUE; -- 2.33.0