comment out playerArray

This commit is contained in:
floty
2007-10-18 17:58:51 +00:00
parent 06a8fd5730
commit 211d8fcefc
19 changed files with 73 additions and 44 deletions
+21 -2
View File
@@ -720,11 +720,30 @@ void
ClientThread::RemoveDisconnectedPlayers()
{
// This should only be called between hands.
// if (m_game.get())
// {
// for (int i = 0; i < m_game->getStartQuantityPlayers(); i++)
// {
// boost::shared_ptr<PlayerInterface> tmpPlayer = m_game->getPlayerArray()[i];
// 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->setMyActiveStatus(false);
// }
// }
// }
// }
// This should only be called between hands.
if (m_game.get())
{
for (int i = 0; i < m_game->getStartQuantityPlayers(); i++)
PlayerListIterator it;
for (it = m_game->getSeatsList()->begin(); it != m_game->getSeatsList()->end(); it++)
{
boost::shared_ptr<PlayerInterface> tmpPlayer = m_game->getPlayerArray()[i];
boost::shared_ptr<PlayerInterface> tmpPlayer = *it;
if (tmpPlayer->getMyActiveStatus())
{
// If a player is not in the player data list, it was disconnected.