Permalink
Browse files

workaround for bug #21797

when the side engine in multiplayer_connect_engine.cpp loads a side,
if the game is a save game, the side is not allowed to have a human
player, and it is listed as "network", then we set it to ai,
assuming that it "should" be a "network_ai" if bug #18829 is ever
fixed
  • Loading branch information...
1 parent 0763670 commit af383e8ebb01094f47ec4712db47ea31adf8fc22 @cbeck88 cbeck88 committed Mar 16, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/multiplayer_connect_engine.cpp
@@ -861,7 +861,8 @@ side_engine::side_engine(const config& cfg, connect_engine& parent_engine,
// Tweak the controllers.
if (cfg_["controller"] == "human_ai" ||
- cfg_["controller"] == "network_ai") {
+ cfg_["controller"] == "network_ai" ||
+ (cfg_["controller"] == "network" && !allow_player_ && parent_.params_.saved_game)) { //this is a workaround for bug #21797
cfg_["controller"] = "ai";
}

0 comments on commit af383e8

Please sign in to comment.