From ccd704c0aad8d9a0563df83da5d6a13dec29087c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 9 Oct 2021 08:26:43 +0300 Subject: [PATCH 44/44] 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 c498e56c6a..e8589c8074 100644 --- a/server/rssanity.c +++ b/server/rssanity.c @@ -655,6 +655,12 @@ static bool rs_buildings(void) "Space part with genus other than \"Special\""); 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