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

This commit is contained in:
lotodore
2007-06-08 20:19:21 +00:00
parent 4b8049e9dd
commit 056ae1aa32
8 changed files with 79 additions and 86 deletions
+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))