bugfix ID 4

This commit is contained in:
floty
2007-05-23 20:03:10 +00:00
parent 2b75a2cda1
commit f9ad1b6b75
2 changed files with 12 additions and 1 deletions
+8 -1
View File
@@ -308,8 +308,8 @@ void LocalHand::switchRounds() {
// 2) alle bis auf einen All In und der hat HighestSet // 2) alle bis auf einen All In und der hat HighestSet
int tempHighestSet; int tempHighestSet;
if(allInPlayersCounter+1 == activePlayersCounter) { if(allInPlayersCounter+1 == activePlayersCounter) {
// Spieler ermitteln, der noch nicht All In ist
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) { for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
// Spieler ermitteln, der noch nicht All In ist
if(playerArray[i]->getMyAction() != 1 && playerArray[i]->getMyAction() != 6 && playerArray[i]->getMyActiveStatus() == 1) { if(playerArray[i]->getMyAction() != 1 && playerArray[i]->getMyAction() != 6 && playerArray[i]->getMyActiveStatus() == 1) {
tempHighestSet = 0; tempHighestSet = 0;
switch (actualRound) { switch (actualRound) {
@@ -328,7 +328,14 @@ void LocalHand::switchRounds() {
if(playerArray[i]->getMySet() >= tempHighestSet) { if(playerArray[i]->getMySet() >= tempHighestSet) {
allInCondition = 1; allInCondition = 1;
} }
} }
// 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) {
allInCondition = 1;
}
} }
} }
} }
+4
View File
@@ -35,6 +35,10 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
// if(myID==0) { // if(myID==0) {
// myActiveStatus=0; // myActiveStatus=0;
// myCash=0; // myCash=0;
// }
// if(myID==1) {
// myCash=300;
// } // }
//////////////////////////// ////////////////////////////