Send list of cards which need to be shown instead of all cards of non-fold players.

This commit is contained in:
lotodore
2010-07-23 15:55:52 +00:00
parent 15b513fb85
commit cc897745c4
5 changed files with 22 additions and 17 deletions
+3
View File
@@ -2007,6 +2007,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
// End of Hand, show cards.
list<unsigned> winnerList;
list<unsigned> showList;
int highestValueOfCards = 0;
PlayerResult_t **playerResults = showCards->playerResults.list.array;
unsigned numResults = showCards->playerResults.list.count;
@@ -2034,11 +2035,13 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
tmpPlayer->setLastMoneyWon(r->moneyWon);
if (r->moneyWon)
winnerList.push_back(r->playerId);
showList.push_back(r->playerId);
}
curGame->getCurrentHand()->getCurrentBeRo()->setHighestCardsValue(highestValueOfCards);
curGame->getCurrentHand()->getBoard()->setPot(0);
curGame->getCurrentHand()->getBoard()->setWinners(winnerList);
curGame->getCurrentHand()->getBoard()->setPlayerNeedToShowCards(showList);
client->GetGui().postRiverRunAnimation1();