applying astyle
This commit is contained in:
@@ -1756,10 +1756,10 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
|
||||
netActionDone->totalPlayerBet - tmpPlayer->getMySet());
|
||||
}
|
||||
// Update last players turn only after the blinds.
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(tmpPlayer->getMyID());
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(tmpPlayer->getMyID());
|
||||
}
|
||||
|
||||
tmpPlayer->setMyAction(PlayerAction(netActionDone->playerAction));
|
||||
tmpPlayer->setMyAction(PlayerAction(netActionDone->playerAction));
|
||||
tmpPlayer->setMySetAbsolute(netActionDone->totalPlayerBet);
|
||||
tmpPlayer->setMyCash(netActionDone->playerMoney);
|
||||
curGame->getCurrentHand()->getCurrentBeRo()->setHighestSet(netActionDone->highestSet);
|
||||
@@ -1835,7 +1835,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
|
||||
tmpCards[3] = tmpCards[4] = 0;
|
||||
curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards);
|
||||
curGame->getCurrentHand()->getBoard()->collectPot();
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(-1);
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(-1);
|
||||
|
||||
client->GetGui().logDealBoardCardsMsg(GAME_STATE_FLOP, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]);
|
||||
client->GetGui().refreshGameLabels(GAME_STATE_FLOP);
|
||||
@@ -1850,7 +1850,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
|
||||
tmpCards[3] = static_cast<int>(netDealTurn->turnCard);
|
||||
curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards);
|
||||
curGame->getCurrentHand()->getBoard()->collectPot();
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(-1);
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(-1);
|
||||
|
||||
client->GetGui().logDealBoardCardsMsg(GAME_STATE_TURN, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]);
|
||||
client->GetGui().refreshGameLabels(GAME_STATE_TURN);
|
||||
@@ -1865,7 +1865,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
|
||||
tmpCards[4] = static_cast<int>(netDealRiver->riverCard);
|
||||
curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards);
|
||||
curGame->getCurrentHand()->getBoard()->collectPot();
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(-1);
|
||||
curGame->getCurrentHand()->setPreviousPlayerID(-1);
|
||||
|
||||
client->GetGui().logDealBoardCardsMsg(GAME_STATE_RIVER, tmpCards[0], tmpCards[1], tmpCards[2], tmpCards[3], tmpCards[4]);
|
||||
client->GetGui().refreshGameLabels(GAME_STATE_RIVER);
|
||||
@@ -1995,7 +1995,7 @@ ClientStateRunHand::ResetPlayerActions(Game &curGame)
|
||||
while (i != end) {
|
||||
int action = (*i)->getMyAction();
|
||||
if (action != 1 && action != 6)
|
||||
(*i)->setMyAction(PLAYER_ACTION_NONE);
|
||||
(*i)->setMyAction(PLAYER_ACTION_NONE);
|
||||
(*i)->setMySetNull();
|
||||
++i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user