Skip to content

Commit

Permalink
Make ruleset change on started game !build
Browse files Browse the repository at this point in the history
  • Loading branch information
rsubtil committed Sep 11, 2023
1 parent 6a10ff7 commit f9f6679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3197,7 +3197,6 @@ static bool setting_is_free_to_change(const struct setting *pset,
case SSET_MAP_ADD:
case SSET_PLAYERS:
case SSET_GAME_INIT:
case SSET_RULES:
/* Only change start params and most rules if we don't yet have a map, or
* if we do have a map but its a scenario one (ie, the game has never
* actually been started).
Expand All @@ -3212,6 +3211,7 @@ static bool setting_is_free_to_change(const struct setting *pset,
setting_name(pset));
return false;

case SSET_RULES:
case SSET_RULES_FLEXIBLE:
case SSET_META:
// These can always be changed:
Expand Down

0 comments on commit f9f6679

Please sign in to comment.