Skip to content

Commit

Permalink
dont treat controller=reserved specially in game::update_side_data()
Browse files Browse the repository at this point in the history
controller=reserved should tread reserved like other not-assigned-yet
sides and not like null controlled sides.
  • Loading branch information
gfgtdf committed Dec 29, 2015
1 parent 67476a2 commit 199d841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game.cpp
Expand Up @@ -451,7 +451,7 @@ void game::update_side_data()
sides_[side_index] = *user;
side_found = true;
}
else if (*user == owner_ && (controller == "null" || controller == "reserved")) {
else if (*user == owner_ && (controller == "null")) {
//the *user == owner_ check has no effect,
//it's just an optimisation so that we only do this once.
side_controllers_[side_index] = controller.to_string();
Expand Down

0 comments on commit 199d841

Please sign in to comment.