Inform players when another player is no longer allowed to rejoin.

This commit is contained in:
lotodore
2011-12-22 20:10:18 +00:00
parent bc37ac69fd
commit f8c1cdf56e
8 changed files with 30 additions and 35 deletions
-23
View File
@@ -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)
{