From 4ed7ec46fdbb48518788ce9a66b10ed0970610ab Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 1 Nov 2007 21:24:26 +0000 Subject: [PATCH] Reset last players turn on bero change for client. --- 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 d8b32d44..289236a2 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -1018,6 +1018,7 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptrgetCurrentHand()->getBoard()->setMyCards(tmpCards); curGame->getCurrentHand()->getBoard()->collectPot(); + curGame->getCurrentHand()->setLastPlayersTurn(-1); client.GetGui().logDealBoardCardsMsg(GAME_STATE_FLOP, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]); client.GetGui().refreshGameLabels(GAME_STATE_FLOP); @@ -1034,6 +1035,7 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr(cardsData.turnCard); curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards); curGame->getCurrentHand()->getBoard()->collectPot(); + curGame->getCurrentHand()->setLastPlayersTurn(-1); client.GetGui().logDealBoardCardsMsg(GAME_STATE_TURN, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]); client.GetGui().refreshGameLabels(GAME_STATE_TURN); @@ -1050,6 +1052,7 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr(cardsData.riverCard); curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards); curGame->getCurrentHand()->getBoard()->collectPot(); + curGame->getCurrentHand()->setLastPlayersTurn(-1); client.GetGui().logDealBoardCardsMsg(GAME_STATE_RIVER, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]); client.GetGui().refreshGameLabels(GAME_STATE_RIVER);