From bdbe1f0217921367438af579c420d1571b92cf3c Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Mon, 12 Apr 2021 12:41:20 +0200 Subject: [PATCH] Document how to set ruleset for scenario. Some rulesets aren't ruleset locked. Document how to set the ruleset of non ruleset locked scenarios when this is attempted after the scenario has been loaded. See osdn #41962 --- server/stdinhand.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/stdinhand.c b/server/stdinhand.c index 93fbbab0b6..2ff6f419f9 100644 --- a/server/stdinhand.c +++ b/server/stdinhand.c @@ -3896,6 +3896,14 @@ static bool set_rulesetdir(struct connection *caller, char *str, bool check, if (game_was_started() || !map_is_empty()) { cmd_reply(CMD_RULESETDIR, caller, C_FAIL, _("This setting can't be modified after the game has started.")); + if (game.scenario.is_scenario && !game.scenario.ruleset_locked + && !game_was_started()) { + cmd_reply(CMD_RULESETDIR, caller, C_FAIL, + /* TRANS: scenario name */ + _("The ruleset of \"%s\" can be changed by switching to a" + " compatible ruleset before loading it."), + game.scenario.name); + } return FALSE; } -- 2.30.2