Skip to content

Commit

Permalink
simplify game_state::init
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 19, 2015
1 parent 2b504a7 commit d898e1d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/game_state.cpp
Expand Up @@ -155,10 +155,7 @@ void game_state::init(const int ticks, play_controller & pc)
{
if (first_human_team_ == -1) {
const std::string &controller = side["controller"];
if (controller == "human" &&
side["id"] == preferences::login()) {
first_human_team_ = team_num;
} else if (controller == "human") {
if (controller == "human") {
first_human_team_ = team_num;
}
}
Expand Down

0 comments on commit d898e1d

Please sign in to comment.