Skip to content

Commit

Permalink
Remove 'allow_new_game=no' entries from random map new game list
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffee-- committed May 17, 2014
1 parent f19fd11 commit 92ccb25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -8,6 +8,7 @@ Version 1.11.14+dev:
[modify_side] color= unless a new flag set is also provided.
* Fix a bug where in movement records, "skip_sighted" was sometimes
spelled as "skip_sighed".
* Remove 'allow_new_game=no' entries from random map new game list

Version 1.11.14:
* Campaigns:
Expand Down
5 changes: 4 additions & 1 deletion src/multiplayer_create_engine.cpp
Expand Up @@ -845,11 +845,14 @@ void create_engine::init_all_levels()
BOOST_FOREACH(const config &data,
resources::config_manager->game_config().child_range("multiplayer"))
{
if (!data["allow_new_game"].to_bool(true))
continue;

if (!data["map_generation"].empty()) {
random_map_ptr new_random_map(new random_map(data));
random_maps_.push_back(new_random_map);
random_maps_.back()->set_metadata();
} else if (data["allow_new_game"].to_bool(true)) {
} else {
scenario_ptr new_scenario(new scenario(data));
scenarios_.push_back(new_scenario);
scenarios_.back()->set_metadata();
Expand Down

0 comments on commit 92ccb25

Please sign in to comment.