maybe fix mp campaign define
follows the suggestion in the first reply in https://gna.org/bugs/index.php?23036.
This commit is contained in:
parent
95d650c9f7
commit
9c6b5df231
1 changed files with 5 additions and 4 deletions
|
@ -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";
|
||||
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue