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

This commit is contained in:
lotodore committed 2011-12-29 22:09:11 +00:00
1 parent 64156cfa69
commit d12ee37bac
2 files changed
+13 -2

No files matched your search

+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);
}
}
}
}