Skip to content

Commit

Permalink
dont have reserved sides in singleplayer connect engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 9, 2016
1 parent 4810e2c commit 49ee9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_initialization/connect_engine.cpp
Expand Up @@ -918,7 +918,7 @@ side_engine::side_engine(const config& cfg, connect_engine& parent_engine,
set_controller(CNTR_EMPTY);
} else if (cfg_["controller"] == "ai") {
set_controller(CNTR_COMPUTER);
} else if (!reserved_for_.empty()) {
} else if (parent_.default_controller_ == CNTR_NETWORK && !reserved_for_.empty()) {
// Reserve a side for "current_player", unless the side
// is played by an AI.
set_controller(CNTR_RESERVED);
Expand Down

0 comments on commit 49ee9da

Please sign in to comment.