Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src/game_initialization/connect_engine.cpp | 13 ++++---------
- 1 file changed, 4 insertions(+), 9 deletions(-)
- diff --git a/src/game_initialization/connect_engine.cpp b/src/game_initialization/connect_engine.cpp
- index 045cbcd..bb2c20f 100644
- --- a/src/game_initialization/connect_engine.cpp
- +++ b/src/game_initialization/connect_engine.cpp
- @@ -1069,21 +1069,16 @@ config side_engine::new_config() const
- res["gold"] = gold_;
- res["income"] = income_;
- - if (!parent_.params_.use_map_settings || res["fog"].empty() ||
- - (res["fog"].to_bool(true) == true && res["fog"].to_bool(false) == false)) {
- - res["fog"] = parent_.params_.fog_game;
- - }
- + res["fog"] = parent_.params_.fog_game;
- + res["shroud"] = res["shroud"].to_bool(false);
- - if (!parent_.params_.use_map_settings || res["shroud"].empty() ||
- - (res["shroud"].to_bool(true) == true && res["shroud"].to_bool(false) == false)) {
- - res["shroud"] = parent_.params_.shroud_game;
- - }
- - //share view default to true here to restore the previous behaviour.
- + //share view default to true here to restore the previous behavior.
- res["share_view"] = res["share_view"].to_bool(true);
- if (!parent_.params_.use_map_settings || res["village_gold"].empty()) {
- res["village_gold"] = parent_.params_.village_gold;
- }
- +
- if (!parent_.params_.use_map_settings ||
- res["village_support"].empty()) {
- res["village_support"] =
Advertisement
Add Comment
Please, Sign In to add comment