Set small/big blind position id on client.

This commit is contained in:
lotodore
2007-10-02 22:56:26 +00:00
parent ebd78b1a67
commit cb5315dd73
4 changed files with 27 additions and 1 deletions
+6
View File
@@ -760,9 +760,15 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr<NetP
throw ClientException(ERR_NET_UNKNOWN_PLAYER_ID, 0);
if (actionDoneData.gameState == GAME_STATE_PREFLOP_SMALL_BLIND)
{
curGame->getCurrentHand()->getCurrentBeRo()->setSmallBlindPositionId(tmpPlayer->getMyUniqueID());
tmpPlayer->setMyButton(BUTTON_SMALL_BLIND);
}
else if (actionDoneData.gameState == GAME_STATE_PREFLOP_BIG_BLIND)
{
curGame->getCurrentHand()->getCurrentBeRo()->setBigBlindPositionId(tmpPlayer->getMyUniqueID());
tmpPlayer->setMyButton(BUTTON_BIG_BLIND);
}
else // no blind -> log
{
if (actionDoneData.playerAction)