From bbd4cf5e4acc1ddf110f90ff9f6b6872914a52af Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Thu, 4 Feb 2021 18:47:51 +0100 Subject: [PATCH] Don't look up slow_invasions in 3.1 rulesets. Ruledit loads all rulesets, including the current version, in compatibility mode. While rscompat_old_slow_invasions_3_1() checks the version it self there is no point in looking it up. See osdn #41462 --- server/ruleset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ruleset.c b/server/ruleset.c index 91e1d560f4..51c9b10fa1 100644 --- a/server/ruleset.c +++ b/server/ruleset.c @@ -6775,7 +6775,7 @@ static bool load_ruleset_game(struct section_file *file, bool act, } } - if (compat->compat_mode) { + if (compat->compat_mode && compat->ver_game < 20) { bool slow_invasions = secfile_lookup_bool_default(file, TRUE, "global_unit_options.slow_invasions"); -- 2.20.1