some changes in hole cards logging
This commit is contained in:
@@ -84,12 +84,12 @@ void LocalBeRoPostRiver::postRiverRun()
|
||||
getMyHand()->getBoard()->setPot(0);
|
||||
|
||||
// Logging hole Cards / Hands
|
||||
int myCards[2];
|
||||
for(it_c=getMyHand()->getActivePlayerList()->begin(); it_c!=getMyHand()->getActivePlayerList()->end(); ++it_c) {
|
||||
if( (*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
|
||||
(*it_c)->getMyCards(myCards);
|
||||
getMyHand()->getLog()->logHoleCardsHandName((*it_c)->getMyID()+1,myCards,(*it_c)->getMyCardsValueInt(),getMyHand()->getActivePlayerList());
|
||||
}
|
||||
int nonfoldPlayersCounter = 0;
|
||||
for (it_c=getMyHand()->getActivePlayerList()->begin(); it_c!=getMyHand()->getActivePlayerList()->end(); ++it_c) {
|
||||
if ((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) nonfoldPlayersCounter++;
|
||||
}
|
||||
if(nonfoldPlayersCounter>1) {
|
||||
getMyHand()->getLog()->logHoleCardsHandName(5,getMyHand()->getActivePlayerList());
|
||||
}
|
||||
|
||||
//starte die Animaionsreihe
|
||||
|
||||
@@ -627,13 +627,7 @@ void LocalHand::switchRounds()
|
||||
myGui->refreshSet();
|
||||
myGui->flipHolecardsAllIn();
|
||||
// Logging HoleCards
|
||||
int myCards[2];
|
||||
for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); ++it_c) {
|
||||
if ((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
|
||||
(*it_c)->getMyCards(myCards);
|
||||
myLog->logHoleCards(currentRound+1,(*it_c)->getMyID()+1,myCards);
|
||||
}
|
||||
}
|
||||
myLog->logHoleCards(currentRound+1,activePlayerList);
|
||||
|
||||
if (currentRound < 4) // do not increment past 4
|
||||
currentRound++;
|
||||
|
||||
Reference in New Issue
Block a user