diff --git a/src/engine/local_engine/localhand.cpp b/src/engine/local_engine/localhand.cpp index c0d09f09..5fbca276 100755 --- a/src/engine/local_engine/localhand.cpp +++ b/src/engine/local_engine/localhand.cpp @@ -269,6 +269,7 @@ void LocalHand::assignButtons() { // sonst else { playerArray[i]->setMySet(2*smallBlind); } } + } } @@ -288,7 +289,7 @@ void LocalHand::switchRounds() { // Anzahl der Spieler ermitteln, welche All In sind int allInPlayersCounter = 0; - for (i=0; igetMyAction() == 6) allInPlayersCounter++; } @@ -336,7 +337,7 @@ void LocalHand::switchRounds() { } // HeadsUp-Ausnahme -> spieler ermitteln, der all in ist und als bb nur weniger als sb setzen konnte - if(activePlayersCounter==2 && playerArray[i]->getMyAction() != 1 && playerArray[i]->getMyAction() == 6 && playerArray[i]->getMyActiveStatus() == 1 && playerArray[i]->getMyButton()==3 && playerArray[i]->getMySet()<=smallBlind) { + if(activePlayersCounter==2 && playerArray[i]->getMyAction() == 6 && playerArray[i]->getMyActiveStatus() == 1 && playerArray[i]->getMyButton()==3 && playerArray[i]->getMySet()<=smallBlind) { allInCondition = 1; } diff --git a/src/engine/local_engine/localplayer.cpp b/src/engine/local_engine/localplayer.cpp index a6576eef..e7f4e700 100755 --- a/src/engine/local_engine/localplayer.cpp +++ b/src/engine/local_engine/localplayer.cpp @@ -34,11 +34,14 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq // for statistic development // if(myID==0) { // myActiveStatus=0; -// myCash=0; +// myCash=20; // } - +// // if(myID==1) { -// myCash=300; +// myCash=6130; +// } +// if(myID==2) { +// myCash=2850; // } //////////////////////////// diff --git a/src/game.cpp b/src/game.cpp index 229a6e36..4bb07b4d 100755 --- a/src/game.cpp +++ b/src/game.cpp @@ -151,14 +151,15 @@ void Game::initHand() if(playerArray[i]->getMyActiveStatus() != 0) actualQuantityPlayers++; } - // Hand erstellen - actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, startQuantityPlayers, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash); - //Spieler Action auf 0 setzen for(i=0; isetMyAction(0); } + // Hand erstellen + actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, startQuantityPlayers, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash); + + // Dealer-Button weiterschieben --> Achtung inactive do { dealerPosition = (dealerPosition+1)%(MAX_NUMBER_OF_PLAYERS);