Kick players from a game when they try to start it without proper rights to do so (was ignored previously).

This commit is contained in:
lotodore
2010-11-14 01:13:23 +00:00
parent 58897ae786
commit f37104e6ec
+4
View File
@@ -555,6 +555,10 @@ ServerGameStateInit::InternalProcessPacket(boost::shared_ptr<ServerGame> server,
{
SendStartEvent(*server, netStartEvent->fillWithComputerPlayers);
}
else // kick players who try to start but are not allowed to
{
server->MoveSessionToLobby(session, NTF_NET_REMOVED_START_FAILED);
}
}
else if (packet->GetMsg()->present == PokerTHMessage_PR_invitePlayerToGameMessage)
{