bugfixes for show cards function

This commit is contained in:
doitux
2010-07-18 11:42:42 +00:00
parent e60b3d8d92
commit 4ed1122931
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2411,7 +2411,7 @@ void gameTableImpl::showMyCards() {
HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
currentHand->getSeatsList()->front()->getMyCards(tempCardsIntArray); currentHand->getSeatsList()->front()->getMyCards(tempCardsIntArray);
if( currentHand->getSeatsList()->front()->getMyCardsFlip() == 0 && currentHand->getCurrentRound() == 4 && currentHand->getSeatsList()->front()->getMyActiveStatus() && currentHand->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD) { if( currentHand->getSeatsList()->front()->getMyCardsFlip() == 0 && currentHand->getCurrentRound() == 3 && currentHand->getSeatsList()->front()->getMyActiveStatus() && currentHand->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD) {
myStartWindow->getSession()->showMyCards(); myStartWindow->getSession()->showMyCards();
+1 -1
View File
@@ -462,7 +462,7 @@ void Session::voteKick(bool doKick)
void Session::showMyCards() void Session::showMyCards()
{ {
if (!myNetClient) if (!myNetClient)
return; // only act if client is running. return; // only act if client is running.
myNetClient->SendShowMyCards(); myNetClient->SendShowMyCards();
} }
+1 -1
View File
@@ -87,7 +87,7 @@ public:
void kickPlayer(const std::string &playerName); void kickPlayer(const std::string &playerName);
void startVoteKickPlayer(unsigned playerId); void startVoteKickPlayer(unsigned playerId);
void voteKick(bool doKick); void voteKick(bool doKick);
void showMyCards(); void showMyCards();
void selectServer(unsigned serverId); void selectServer(unsigned serverId);
void setLogin(const std::string &userName, const std::string &password, bool isGuest); void setLogin(const std::string &userName, const std::string &password, bool isGuest);