Update server ping with each game action (#239).

This commit is contained in:
lotodore
2013-12-08 12:20:51 +01:00
parent e58545b001
commit 0d60360fca
11 changed files with 76 additions and 14 deletions
+4
View File
@@ -1771,6 +1771,10 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
client->GetClientLog()->transformPlayerActionLog(PlayerAction(netActionDone.playeraction())),
netActionDone.totalplayerbet() - tmpPlayer->getMySet()
);
if (tmpPlayer->getMyID() == 0)
{
client->EndPing();
}
}
// Update last players turn only after the blinds.
curGame->getCurrentHand()->setPreviousPlayerID(tmpPlayer->getMyID());