CardsValue is now optionally sent by the server.

This commit is contained in:
lotodore committed 2011-11-13 15:31:35 +00:00
1 parent edef79e9d1
commit edde9137ae
5 files changed
+23 -18

No files matched your search

+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();
}