Try to update the player name after rejoin, if another player was not active during rejoin.

This commit is contained in:
lotodore
2011-12-29 22:09:11 +00:00
parent 64156cfa69
commit d12ee37bac
2 changed files with 13 additions and 2 deletions
+5
View File
@@ -1725,6 +1725,11 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client
tmpPlayer->setMyStayOnTableStatus(true);
// Also update the dealer, if necessary.
curGame->replaceDealer(idChanged->oldPlayerId, idChanged->newPlayerId);
// Update the player name, if necessary.
PlayerInfo info;
if (client->GetCachedPlayerInfo(idChanged->newPlayerId, info)) {
tmpPlayer->setMyName(info.playerName);
}
}
}
}