Cleaning up the different timeouts and how players can be removed from the game.
This commit is contained in:
@@ -1010,6 +1010,17 @@ ClientStateWaitEnterLogin::Exit(boost::shared_ptr<ClientThread> client)
|
||||
client->GetStateTimer().cancel();
|
||||
}
|
||||
|
||||
void
|
||||
ClientStateWaitEnterLogin::HandlePacket(boost::shared_ptr<ClientThread> client, boost::shared_ptr<NetPacket> tmpPacket)
|
||||
{
|
||||
if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_errorMessage) {
|
||||
// Server reported an error.
|
||||
ErrorMessage_t *netError = &tmpPacket->GetMsg()->choice.errorMessage;
|
||||
// Show the error.
|
||||
throw ClientException(__FILE__, __LINE__, NetPacket::NetErrorToGameError(netError->errorReason), 0);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost::shared_ptr<ClientThread> client)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user