fixes "leavegame-button accidentally disabled" and "preactions shows

during autofold"
This commit is contained in:
doitux
2011-12-29 22:43:42 +00:00
parent d12ee37bac
commit d08352dd72
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1563,7 +1563,7 @@ void gameTableImpl::provideMyActions(int mode)
PlayerList activePlayerList = currentHand->getActivePlayerList();
//really disabled buttons if human player is fold/all-in or ... and not called from dealberocards
if(/*pushButton_BetRaise->isCheckable() && */mode != 0 && (humanPlayer->getMyAction() == PLAYER_ACTION_ALLIN || humanPlayer->getMyAction() == PLAYER_ACTION_FOLD || (humanPlayer->getMySet() == currentHand->getCurrentBeRo()->getHighestSet() && (humanPlayer->getMyAction() != PLAYER_ACTION_NONE)))) {
if(/*pushButton_BetRaise->isCheckable() && */(mode != 0 && (humanPlayer->getMyAction() == PLAYER_ACTION_ALLIN || humanPlayer->getMyAction() == PLAYER_ACTION_FOLD || (humanPlayer->getMySet() == currentHand->getCurrentBeRo()->getHighestSet() && (humanPlayer->getMyAction() != PLAYER_ACTION_NONE)))) || !humanPlayer->isSessionActive() /*autofold*/) {
pushButton_BetRaise->setText("");
pushButton_CallCheck->setText("");