Vultraz

Untitled

Jun 2nd, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.40 KB | None | 0 0
  1.  src/game_initialization/connect_engine.cpp | 13 ++++---------
  2.  1 file changed, 4 insertions(+), 9 deletions(-)
  3.  
  4. diff --git a/src/game_initialization/connect_engine.cpp b/src/game_initialization/connect_engine.cpp
  5. index 045cbcd..bb2c20f 100644
  6. --- a/src/game_initialization/connect_engine.cpp
  7. +++ b/src/game_initialization/connect_engine.cpp
  8. @@ -1069,21 +1069,16 @@ config side_engine::new_config() const
  9.         res["gold"] = gold_;
  10.         res["income"] = income_;
  11.  
  12. -       if (!parent_.params_.use_map_settings || res["fog"].empty() ||
  13. -           (res["fog"].to_bool(true) == true && res["fog"].to_bool(false) == false)) {
  14. -           res["fog"] = parent_.params_.fog_game;
  15. -       }
  16. +       res["fog"] = parent_.params_.fog_game;
  17. +       res["shroud"] = res["shroud"].to_bool(false);
  18.  
  19. -       if (!parent_.params_.use_map_settings || res["shroud"].empty() ||
  20. -           (res["shroud"].to_bool(true) == true && res["shroud"].to_bool(false) == false)) {
  21. -           res["shroud"] = parent_.params_.shroud_game;
  22. -       }
  23. -       //share view default to true here to restore the previous behaviour.
  24. +       //share view default to true here to restore the previous behavior.
  25.         res["share_view"] =  res["share_view"].to_bool(true);
  26.  
  27.         if (!parent_.params_.use_map_settings || res["village_gold"].empty()) {
  28.             res["village_gold"] = parent_.params_.village_gold;
  29.         }
  30. +
  31.         if (!parent_.params_.use_map_settings ||
  32.             res["village_support"].empty()) {
  33.             res["village_support"] =
Advertisement
Add Comment
Please, Sign In to add comment