bugfixes for show cards function
This commit is contained in:
@@ -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
@@ -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
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user