Do not invite players who are already in the group.
This commit is contained in:
1 parent
61fd70d407
commit
72fa1fb9ec
3 files changed
+11
-1
No files matched your search
@@ -467,7 +467,8 @@ ServerGameStateInit::InternalProcessPacket(boost::shared_ptr<ServerGame> server,
|
||||
{
|
||||
InvitePlayerToGameMessage_t *netInvite = &packet->GetMsg()->choice.invitePlayerToGameMessage;
|
||||
|
||||
if (netInvite->gameId == server->GetId())
|
||||
// Only invite players which are not already within the group.
|
||||
if (netInvite->gameId == server->GetId() && !server->IsPlayerConnected(netInvite->playerId))
|
||||
{
|
||||
boost::shared_ptr<NetPacket> packet(new NetPacket(NetPacket::Alloc));
|
||||
packet->GetMsg()->present = PokerTHMessage_PR_inviteNotifyMessage;
|
||||
|
||||
Reference in new issue
Block a user