From 2604e2b962a7732355e6d00e25883d279eb60709 Mon Sep 17 00:00:00 2001 From: floty Date: Sat, 7 Jan 2012 22:31:32 +0000 Subject: [PATCH] bugfix: proper current round in sqlite log when board cards shown on board --- src/net/common/clientstate.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index 4eb51f4d..c4068262 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -1886,6 +1886,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, curGame->getCurrentHand()->setPreviousPlayerID(-1); client->GetGui().logDealBoardCardsMsg(GAME_STATE_FLOP, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]); + client->GetClientLog()->setCurrentRound(GAME_STATE_FLOP); client->GetClientLog()->logBoardCards(tmpCards); client->GetGui().refreshGameLabels(GAME_STATE_FLOP); client->GetGui().refreshPot(); @@ -1902,6 +1903,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, curGame->getCurrentHand()->setPreviousPlayerID(-1); client->GetGui().logDealBoardCardsMsg(GAME_STATE_TURN, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]); + client->GetClientLog()->setCurrentRound(GAME_STATE_TURN); client->GetClientLog()->logBoardCards(tmpCards); client->GetGui().refreshGameLabels(GAME_STATE_TURN); client->GetGui().refreshPot(); @@ -1918,6 +1920,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, curGame->getCurrentHand()->setPreviousPlayerID(-1); client->GetGui().logDealBoardCardsMsg(GAME_STATE_RIVER, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]); + client->GetClientLog()->setCurrentRound(GAME_STATE_RIVER); client->GetClientLog()->logBoardCards(tmpCards); client->GetGui().refreshGameLabels(GAME_STATE_RIVER); client->GetGui().refreshPot();