implements feature request: 9. When using Cards only visible on mouse click, retain the ability to see own cards after folding

This commit is contained in:
doitux
2009-03-02 22:13:20 +00:00
parent e8f9d917f8
commit 9d49dd9be5
2 changed files with 10 additions and 5 deletions
+4 -4
View File
@@ -929,14 +929,14 @@ void gameTableImpl::refreshAction(int playerID, int playerAction) {
if (playerAction == 1) { // FOLD
if (playerID == 0 && !myConfig->readConfigInt("AntiPeekMode")) {
if (playerID == 0 /*&& !myConfig->readConfigInt("AntiPeekMode")*/) {
holeCardsArray[0][0]->startFadeOut(10);
holeCardsArray[0][1]->startFadeOut(10);
}
}/*
else {
holeCardsArray[playerID][0]->setPixmap(onePix, FALSE);
holeCardsArray[playerID][1]->setPixmap(onePix, FALSE);
}
}*/
}
}
}
@@ -2906,7 +2906,7 @@ void gameTableImpl::networkGameModification() {
void gameTableImpl::mouseOverFlipCards(bool front) {
if(myStartWindow->getSession()->getCurrentGame()) {
if(myConfig->readConfigInt("AntiPeekMode") && myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getSeatsList()->front()->getMyActiveStatus() && myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD) {
if(myConfig->readConfigInt("AntiPeekMode") && myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getSeatsList()->front()->getMyActiveStatus()/* && myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD*/){
holeCardsArray[0][0]->signalFastFlipCards(front);
holeCardsArray[0][1]->signalFastFlipCards(front);
}