From 9cf398d3e05031f224211a49351620d4c0c6de31 Mon Sep 17 00:00:00 2001 From: lotodore Date: Tue, 30 Oct 2007 16:57:48 +0000 Subject: [PATCH] Fixed winner list issue on client. --- src/net/common/clientstate.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index 9880c369..a1d6b856 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -1097,8 +1097,12 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptrsetMyCash(endHandData.playerMoney); + tmpPlayer->setLastMoneyWon(endHandData.moneyWon); + list winnerList; + winnerList.push_back(tmpPlayer->getMyUniqueID()); curGame->getCurrentHand()->getBoard()->setPot(0); + curGame->getCurrentHand()->getBoard()->setWinners(winnerList); client.GetGui().postRiverRunAnimation1(); @@ -1145,9 +1149,10 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptrgetMyCardsValueInt() > highestValueOfCards) highestValueOfCards = tmpPlayer->getMyCardsValueInt(); tmpPlayer->setMyCash((*i).playerMoney); - + tmpPlayer->setLastMoneyWon((*i).moneyWon); if ((*i).moneyWon) winnerList.push_back((*i).playerId); + ++i; } curGame->getCurrentHand()->getCurrentBeRo()->setHighestCardsValue(highestValueOfCards);