From 1e4bf1db6488a9a045b5715452935df00f8cf1f5 Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 12 Aug 2010 22:12:08 +0000 Subject: [PATCH] Trying to fix postriver issue in client. --- src/net/common/clientstate.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index 3e7feb4c..c287f0f6 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -1966,8 +1966,6 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, { EndOfHandMessage_t *netEndHand = &tmpPacket->GetMsg()->choice.endOfHandMessage; - curGame->getCurrentHand()->setCurrentRound(GAME_STATE_POST_RIVER); - if (netEndHand->endOfHandType.present == endOfHandType_PR_endOfHandHideCards) { EndOfHandHideCards_t *hideCards = &netEndHand->endOfHandType.choice.endOfHandHideCards; @@ -2043,6 +2041,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, showList.push_back(r->playerId); } + curGame->getCurrentHand()->setCurrentRound(GAME_STATE_POST_RIVER); curGame->getCurrentHand()->getCurrentBeRo()->setHighestCardsValue(highestValueOfCards); curGame->getCurrentHand()->getBoard()->setPot(0); curGame->getCurrentHand()->getBoard()->setWinners(winnerList);