CardsValue is now optionally sent by the server.

This commit is contained in:
lotodore
2011-11-13 15:31:35 +00:00
parent edef79e9d1
commit edde9137ae
5 changed files with 23 additions and 18 deletions
+2 -1
View File
@@ -199,7 +199,8 @@ SetPlayerResult(PlayerResult_t &playerResult, boost::shared_ptr<PlayerInterface>
ASN_SEQUENCE_ADD(&playerResult.bestHandPosition.list, handPos);
}
playerResult.cardsValue = tmpPlayer->getMyCardsValueInt();
playerResult.cardsValue = (long *)calloc(1, sizeof(long));
*playerResult.cardsValue = tmpPlayer->getMyCardsValueInt();
playerResult.moneyWon = tmpPlayer->getLastMoneyWon();
playerResult.playerMoney = tmpPlayer->getMyCash();
}