Skip to content

Commit

Permalink
maybe fix mp campaign define
Browse files Browse the repository at this point in the history
follows the suggestion in the first reply in https://gna.org/bugs/index.php?23036.
  • Loading branch information
gfgtdf committed Dec 27, 2014
1 parent 95d650c commit 9c6b5df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/multiplayer_wait.cpp
Expand Up @@ -220,11 +220,7 @@ void wait::join_game(bool observe)
if (!download_res) {
set_result(QUIT);
return;
} else if (!level_["allow_new_game"].to_bool(true)) {
set_result(PLAY);
return;
}

if (first_scenario_) {
state_ = game_state();
state_.classification().campaign_type = "multiplayer";
Expand All @@ -246,6 +242,11 @@ void wait::join_game(bool observe)
load_game_config_for_game(state_.classification());
}

if (!level_["allow_new_game"].to_bool(true)) {
set_result(PLAY);
return;
}

// Add the map name to the title.
append_to_title(": " + level_["name"].t_str());

Expand Down

0 comments on commit 9c6b5df

Please sign in to comment.