actual -> current ;)
This commit is contained in:
@@ -967,10 +967,10 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr<NetP
|
||||
throw ClientException(ERR_NET_UNKNOWN_PLAYER_ID, 0);
|
||||
|
||||
// Set round.
|
||||
if (curGame->getCurrentHand()->getActualRound() != turnData.gameState)
|
||||
if (curGame->getCurrentHand()->getCurrentRound() != turnData.gameState)
|
||||
{
|
||||
ResetPlayerActions(*curGame);
|
||||
curGame->getCurrentHand()->setActualRound(turnData.gameState);
|
||||
curGame->getCurrentHand()->setCurrentRound(turnData.gameState);
|
||||
// Refresh actions.
|
||||
client.GetGui().refreshSet();
|
||||
client.GetGui().refreshAction();
|
||||
|
||||
@@ -135,7 +135,7 @@ ClientThread::SendPlayerAction()
|
||||
boost::shared_ptr<NetPacket> action(new NetPacketPlayersAction);
|
||||
NetPacketPlayersAction::Data actionData;
|
||||
boost::shared_ptr<PlayerInterface> myPlayer = GetGame()->getSeatsList()->front();
|
||||
actionData.gameState = static_cast<GameState>(GetGame()->getCurrentHand()->getActualRound());
|
||||
actionData.gameState = static_cast<GameState>(GetGame()->getCurrentHand()->getCurrentRound());
|
||||
actionData.playerAction = static_cast<PlayerAction>(myPlayer->getMyAction());
|
||||
// Only send last bet if not fold/checked.
|
||||
if (actionData.playerAction != PLAYER_ACTION_FOLD && actionData.playerAction != PLAYER_ACTION_CHECK)
|
||||
|
||||
+1229
-1229
File diff suppressed because it is too large
Load Diff
+552
-552
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user