Skip to content

Commit

Permalink
ignore allow_new_game for reloaded games
Browse files Browse the repository at this point in the history
this fixes a bug when reloaded games  started immideately for joining
players.
  • Loading branch information
gfgtdf committed Jun 15, 2014
1 parent 92aa666 commit ea6c8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multiplayer_wait.cpp
Expand Up @@ -224,7 +224,7 @@ void wait::join_game(bool observe)
if (!download_res) {
set_result(QUIT);
return;
} else if (!get_scenario()["allow_new_game"].to_bool(true)) {
} else if (!get_scenario()["allow_new_game"].to_bool(true) && !level_.child_or_empty("multiplayer")["savegame"].to_bool(false)) {
set_result(PLAY);
return;
}
Expand Down

0 comments on commit ea6c8d4

Please sign in to comment.