fix showing mp_connect between sp scenarios.

commit 4747c19acf accidently reverted parts of 3154b07605
This commit is contained in:
gfgtdf 2014-10-18 19:51:06 +02:00
parent 321166b869
commit 441343aa3d

View file

@ -383,7 +383,8 @@ LEVEL_RESULT play_game(game_display& disp, saved_game& gamestate,
connect_engine(new ng::connect_engine(gamestate,
!network_game, false));
if (starting_pos["allow_new_game"].to_bool(true) || (game_config::debug && network::nconnections() == 0)) {
if (starting_pos["allow_new_game"].to_bool(gamestate.mp_settings().show_connect)
|| (game_config::debug && network::nconnections() == 0)) {
// Opens mp::connect dialog to allow users to
// make an adjustments for scenario.
// TODO: Fix this so that it works when network::nconnections() > 0 as well.