Trying to fix problem with client active status on rejoin.
This commit is contained in:
@@ -1694,6 +1694,8 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client
|
||||
if (!tmpPlayer)
|
||||
throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0);
|
||||
tmpPlayer->setMyUniqueID(idChanged->newPlayerId);
|
||||
// This player is now active again.
|
||||
tmpPlayer->setMyActiveStatus(true);
|
||||
// Also update the dealer, if necessary.
|
||||
curGame->replaceDealer(idChanged->oldPlayerId, idChanged->newPlayerId);
|
||||
}
|
||||
|
||||
@@ -1162,7 +1162,7 @@ ClientThread::RemoveDisconnectedPlayers()
|
||||
if (tmpPlayer->getMyActiveStatus()) {
|
||||
// If a player is not in the player data list, it was disconnected.
|
||||
if (!GetPlayerDataByUniqueId(tmpPlayer->getMyUniqueID()).get()) {
|
||||
tmpPlayer->setMyCash(0);
|
||||
//tmpPlayer->setMyCash(0);
|
||||
tmpPlayer->setMyActiveStatus(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user