From 1d838fcc07fd1338f146eef937483d922db4421d Mon Sep 17 00:00:00 2001 From: lotodore Date: Fri, 8 Jun 2007 21:25:12 +0000 Subject: [PATCH] Fixed resetting of pot at end of hand. Fixed resetting of sets at end of round. --- src/net/common/clientstate.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index e6384fdb..8c31c42d 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -563,6 +563,7 @@ ClientStateWaitHand::InternalProcess(ClientThread &client, boost::shared_ptrstartHand(); client.GetGui().dealHoleCards(); client.GetGui().refreshGameLabels(GAME_STATE_PREFLOP); + client.GetGui().refreshPot(); client.SetState(ClientStateRunHand::Instance()); retVal = MSG_NET_GAME_CLIENT_HAND_START; @@ -657,6 +658,7 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptrgetCurrentHand()->setActualRound(turnData.gameState); // Refresh actions. + client.GetGui().refreshSet(); client.GetGui().refreshAction(); } @@ -762,6 +764,7 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptrsetMyCash(endHandData.playerMoney); // TODO use moneyWon + curGame->getCurrentHand()->getBoard()->setPot(0); client.GetGui().postRiverRunAnimation1(); // Reset player actions @@ -802,7 +805,8 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptrgetCurrentHand()->getRiver()->setHighestCardsValue(highestValueOfCards); + curGame->getCurrentHand()->getRiver()->setHighestCardsValue(highestValueOfCards); + curGame->getCurrentHand()->getBoard()->setPot(0); client.GetGui().postRiverRunAnimation1(); // Reset player sets