bugfix
This commit is contained in:
@@ -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; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||
if (playerArray[i]->getMyAction() == 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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
// }
|
||||
////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user