Skip to content

Commit

Permalink
Merge pull request #343 from gfgtdf/lock_settings
Browse files Browse the repository at this point in the history
make force_lock_settings default to true for [scenario]
  • Loading branch information
gfgtdf committed Dec 19, 2014
2 parents 5eab596 + 213c829 commit 8692e8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game_config_manager.cpp
Expand Up @@ -262,6 +262,8 @@ void game_config_manager::load_game_config(FORCE_RELOAD_CONFIG force_reload,
BOOST_FOREACH(config& cfg, scenarios) {
cfg["campaign_id"] = campaign_id;
cfg["require_scenario"] = require_campaign;
// make force_lock_settings default to true for [scenario]
cfg["force_lock_settings"] = cfg["force_lock_settings"].to_bool(true);
game_config_.add_child(lexical_cast<std::string>(game_classification::MULTIPLAYER), cfg);
}
}
Expand Down

0 comments on commit 8692e8f

Please sign in to comment.