Let the server send cards on request of the corresponding user.

This commit is contained in:
lotodore
2010-07-17 21:11:12 +00:00
parent 96fa7c642c
commit 0a15afacbb
12 changed files with 76 additions and 30 deletions
+2 -1
View File
@@ -517,7 +517,8 @@ boost::shared_ptr<SessionData> ClientPlayer::getNetSessionData()
bool ClientPlayer::checkIfINeedToShowCards()
{
std::list<unsigned> playerNeedToShowCardsList = currentBoard->getPlayerNeedToShowCards();
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
std::list<unsigned> playerNeedToShowCardsList = currentBoard->getPlayerNeedToShowCards();
for(std::list<unsigned>::iterator it = playerNeedToShowCardsList.begin(); it != playerNeedToShowCardsList.end(); it++)
{
if(*it == myUniqueID) return true;