Skip to content

Commit

Permalink
Merge pull request #2286 from o01eg/fix-return-to-lobby-roles
Browse files Browse the repository at this point in the history
Don't set any roles when return player to lobby.
  • Loading branch information
geoffthemedio committed Sep 20, 2018
2 parents 5ccef52 + f8576fe commit 843954f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/ServerFSM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,13 +586,6 @@ MPLobby::MPLobby(my_context c) :
player_setup_data.m_starting_species_name = sm.SequentialPlayableSpeciesName(player_id);

m_lobby_data->m_players.push_back({player_id, player_setup_data});

player_connection->SetAuthRoles({
Networking::ROLE_CLIENT_TYPE_MODERATOR,
Networking::ROLE_CLIENT_TYPE_PLAYER,
Networking::ROLE_CLIENT_TYPE_OBSERVER,
Networking::ROLE_GALAXY_SETUP
});
} else if (player_connection->GetClientType() == Networking::CLIENT_TYPE_AI_PLAYER) {
if (m_ai_next_index <= max_ai || max_ai < 0) {
PlayerSetupData player_setup_data;
Expand Down

0 comments on commit 843954f

Please sign in to comment.