From 4ed112293190255df0b5817fad42e6ecad11bd13 Mon Sep 17 00:00:00 2001 From: doitux Date: Sun, 18 Jul 2010 11:42:42 +0000 Subject: [PATCH] bugfixes for show cards function --- src/gui/qt/gametable/gametableimpl.cpp | 2 +- src/session.cpp | 2 +- src/session.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index d07b2196..2af242e5 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -2411,7 +2411,7 @@ void gameTableImpl::showMyCards() { HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); 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(); diff --git a/src/session.cpp b/src/session.cpp index 44625eca..5c0b2516 100755 --- a/src/session.cpp +++ b/src/session.cpp @@ -462,7 +462,7 @@ void Session::voteKick(bool doKick) void Session::showMyCards() { if (!myNetClient) - return; // only act if client is running. + return; // only act if client is running. myNetClient->SendShowMyCards(); } diff --git a/src/session.h b/src/session.h index a746c0a2..03654ad3 100755 --- a/src/session.h +++ b/src/session.h @@ -87,7 +87,7 @@ public: void kickPlayer(const std::string &playerName); void startVoteKickPlayer(unsigned playerId); void voteKick(bool doKick); - void showMyCards(); + void showMyCards(); void selectServer(unsigned serverId); void setLogin(const std::string &userName, const std::string &password, bool isGuest);