- some changes in sqlite logging

- replace myAction-int by PlayerAction in player-object
This commit is contained in:
floty
2011-10-24 20:44:22 +00:00
parent 94f0c3e694
commit fb01a698d5
9 changed files with 221 additions and 196 deletions
+2 -2
View File
@@ -1756,7 +1756,7 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
curGame->getCurrentHand()->setLastPlayersTurn(tmpPlayer->getMyID());
}
tmpPlayer->setMyAction(netActionDone->playerAction);
tmpPlayer->setMyAction(PlayerAction(netActionDone->playerAction));
tmpPlayer->setMySetAbsolute(netActionDone->totalPlayerBet);
tmpPlayer->setMyCash(netActionDone->playerMoney);
curGame->getCurrentHand()->getCurrentBeRo()->setHighestSet(netActionDone->highestSet);
@@ -1992,7 +1992,7 @@ ClientStateRunHand::ResetPlayerActions(Game &curGame)
while (i != end) {
int action = (*i)->getMyAction();
if (action != 1 && action != 6)
(*i)->setMyAction(0);
(*i)->setMyAction(PLAYER_ACTION_NONE);
(*i)->setMySetNull();
++i;
}