Inform players when another player is no longer allowed to rejoin.
This commit is contained in:
@@ -1161,29 +1161,6 @@ ClientThread::GetPlayerDataByName(const std::string &name)
|
||||
return tmpPlayer;
|
||||
}
|
||||
|
||||
void
|
||||
ClientThread::RemoveDisconnectedPlayers()
|
||||
{
|
||||
// This should only be called between hands.
|
||||
if (m_game) {
|
||||
PlayerList tmpList(m_game->getSeatsList());
|
||||
PlayerListIterator i = tmpList->begin();
|
||||
PlayerListIterator end = tmpList->end();
|
||||
while (i != end) {
|
||||
boost::shared_ptr<PlayerInterface> tmpPlayer = *i;
|
||||
if (tmpPlayer->getMyActiveStatus()) {
|
||||
// If a player is not in the player data list, it was disconnected.
|
||||
if (!GetPlayerDataByUniqueId(tmpPlayer->getMyUniqueID()).get()) {
|
||||
if (tmpPlayer->isKicked()) {
|
||||
tmpPlayer->setMyCash(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ClientThread::AddServerInfo(unsigned serverId, const ServerInfo &info)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user