Cleaned up some networking code. Total sets are now calculated by the client.

This commit is contained in:
lotodore committed 2007-06-08 20:19:21 +00:00
1 parent 4b8049e9dd
commit 056ae1aa32
8 files changed
+79 -86

No files matched your search

+1 -1
View File
@@ -624,7 +624,7 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr<NetP
tmpPlayer->setMyAction(actionDoneData.playerAction);
tmpPlayer->setMySetAbsolute(actionDoneData.totalPlayerBet);
tmpPlayer->setMyCash(actionDoneData.playerMoney);
curGame->getCurrentHand()->getBoard()->setSets(actionDoneData.curHandBets);
curGame->getCurrentHand()->getBoard()->collectSets();
// Update highest set
if (tmpPlayer->getMySet() > GetHighestSet(*curGame))