Do not invite players who are already in the group.
This commit is contained in:
@@ -464,6 +464,12 @@ ServerGame::IsPlayerConnected(const std::string &name) const
|
||||
return GetSessionManager().IsPlayerConnected(name);
|
||||
}
|
||||
|
||||
bool
|
||||
ServerGame::IsPlayerConnected(unsigned playerId) const
|
||||
{
|
||||
return GetSessionManager().IsPlayerConnected(playerId);
|
||||
}
|
||||
|
||||
bool
|
||||
ServerGame::IsRunning() const
|
||||
{
|
||||
@@ -487,6 +493,8 @@ ServerGame::AddPlayerInvitation(unsigned playerId)
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_playerInvitationListMutex);
|
||||
m_playerInvitationList.push_back(playerId);
|
||||
m_playerInvitationList.sort();
|
||||
m_playerInvitationList.unique();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user