allin button bugfix

This commit is contained in:
doitux
2009-04-13 18:16:28 +00:00
parent cfd9b14c56
commit 77750baf18
+3 -2
View File
@@ -1694,6 +1694,8 @@ void gameTableImpl::mySet(){
void gameTableImpl::myAllIn(){ void gameTableImpl::myAllIn(){
if(pushButton_AllIn->text() == AllInString) {
HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
currentHand->getSeatsList()->front()->setMySet(currentHand->getSeatsList()->front()->getMyCash()); currentHand->getSeatsList()->front()->setMySet(currentHand->getSeatsList()->front()->getMyCash());
@@ -1712,14 +1714,13 @@ void gameTableImpl::myAllIn(){
currentHand->getBoard()->collectSets(); currentHand->getBoard()->collectSets();
refreshPot(); refreshPot();
// statusBar()->clearMessage();
//set that i was the last active player. need this for unhighlighting groupbox //set that i was the last active player. need this for unhighlighting groupbox
currentHand->setLastPlayersTurn(0); currentHand->setLastPlayersTurn(0);
//Spiel läuft weiter //Spiel läuft weiter
myActionDone(); myActionDone();
} }
}
void gameTableImpl::pushButtonBetRaiseClicked(bool checked) { void gameTableImpl::pushButtonBetRaiseClicked(bool checked) {