From 44ba6cba681178cdbfad9a12aa958de22f75bab0 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 7 Jan 2012 21:02:58 +0000 Subject: [PATCH] Set new round in log object. --- src/net/common/clientstate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index 1b14f2e5..4eb51f4d 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -1850,6 +1850,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, if (curGame->getCurrentHand()->getCurrentRound() != netPlayersTurn->gameState) { ResetPlayerActions(*curGame); curGame->getCurrentHand()->setCurrentRound(GameState(netPlayersTurn->gameState)); + client->GetClientLog()->setCurrentRound(GameState(netPlayersTurn->gameState)); // Refresh actions. client->GetGui().refreshSet(); client->GetGui().refreshAction(); @@ -2029,6 +2030,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, } curGame->getCurrentHand()->setCurrentRound(GAME_STATE_POST_RIVER); + client->GetClientLog()->setCurrentRound(GAME_STATE_POST_RIVER); curGame->getCurrentHand()->getCurrentBeRo()->setHighestCardsValue(highestValueOfCards); curGame->getCurrentHand()->getBoard()->setPot(0); curGame->getCurrentHand()->getBoard()->setWinners(winnerList);