allin button bugfix
This commit is contained in:
@@ -1694,31 +1694,32 @@ void gameTableImpl::mySet(){
|
|||||||
|
|
||||||
void gameTableImpl::myAllIn(){
|
void gameTableImpl::myAllIn(){
|
||||||
|
|
||||||
HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
if(pushButton_AllIn->text() == AllInString) {
|
||||||
|
|
||||||
currentHand->getSeatsList()->front()->setMySet(currentHand->getSeatsList()->front()->getMyCash());
|
HandInterface *currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
currentHand->getSeatsList()->front()->setMyCash(0);
|
|
||||||
currentHand->getSeatsList()->front()->setMyAction(6);
|
|
||||||
|
|
||||||
if(currentHand->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) {
|
|
||||||
currentHand->getCurrentBeRo()->setMinimumRaise(currentHand->getSeatsList()->front()->getMySet() - currentHand->getCurrentBeRo()->getHighestSet());
|
|
||||||
|
|
||||||
currentHand->getCurrentBeRo()->setHighestSet(currentHand->getSeatsList()->front()->getMySet());
|
currentHand->getSeatsList()->front()->setMySet(currentHand->getSeatsList()->front()->getMyCash());
|
||||||
|
currentHand->getSeatsList()->front()->setMyCash(0);
|
||||||
|
currentHand->getSeatsList()->front()->setMyAction(6);
|
||||||
|
|
||||||
}
|
if(currentHand->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) {
|
||||||
|
currentHand->getCurrentBeRo()->setMinimumRaise(currentHand->getSeatsList()->front()->getMySet() - currentHand->getCurrentBeRo()->getHighestSet());
|
||||||
|
|
||||||
currentHand->getSeatsList()->front()->setMyTurn(0);
|
currentHand->getCurrentBeRo()->setHighestSet(currentHand->getSeatsList()->front()->getMySet());
|
||||||
|
|
||||||
currentHand->getBoard()->collectSets();
|
}
|
||||||
refreshPot();
|
|
||||||
|
|
||||||
// statusBar()->clearMessage();
|
|
||||||
|
|
||||||
//set that i was the last active player. need this for unhighlighting groupbox
|
currentHand->getSeatsList()->front()->setMyTurn(0);
|
||||||
currentHand->setLastPlayersTurn(0);
|
|
||||||
|
|
||||||
//Spiel läuft weiter
|
currentHand->getBoard()->collectSets();
|
||||||
myActionDone();
|
refreshPot();
|
||||||
|
|
||||||
|
//set that i was the last active player. need this for unhighlighting groupbox
|
||||||
|
currentHand->setLastPlayersTurn(0);
|
||||||
|
|
||||||
|
//Spiel läuft weiter
|
||||||
|
myActionDone();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user