diff --git a/src/engine/local_engine/localplayer.cpp b/src/engine/local_engine/localplayer.cpp index 8a146fac..97da4d51 100755 --- a/src/engine/local_engine/localplayer.cpp +++ b/src/engine/local_engine/localplayer.cpp @@ -4074,7 +4074,7 @@ void LocalPlayer::preflopEngine3() { } else { // RAISE --> wenn hohes Potential - if(potential >= 4 && 6 * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet() || bluff <= 6) { + if((potential >= 4 && 6 * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet()) || bluff <= 6) { // extrem hohes Potential --> groᅵr Raise if(potential>=6 || bluff <= 2) { @@ -4509,7 +4509,7 @@ void LocalPlayer::turnEngine3() { // CALL und RAISE --> wenn bereits gesetzt wurde else { // RAISE --> wenn Potential besonders gut - if(potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet() || (bluff <= 4 && 3 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) { + if((potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet()) || (bluff <= 4 && 3 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) { // bluff - raise if(bluff <= 4) raise = ((bluff+1)/2) * currentHand->getCurrentBeRo()->getHighestSet(); @@ -4671,7 +4671,7 @@ void LocalPlayer::riverEngine3() { // CALL und RAISE --> wenn bereits gesetzt wurde else { // RAISE --> wenn Potential besonders gut - if(potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet() || (bluff <= 2 && 4 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) { + if((potential >=4 && 2 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet()) || (bluff <= 2 && 4 * tempFold * currentHand->getSmallBlind() >= currentHand->getCurrentBeRo()->getHighestSet())) { // bluff - raise if(bluff <= 2 ) raise = bluff * currentHand->getCurrentBeRo()->getHighestSet(); diff --git a/src/engine/local_engine/tools.cpp b/src/engine/local_engine/tools.cpp index 87b69545..5be0a825 100755 --- a/src/engine/local_engine/tools.cpp +++ b/src/engine/local_engine/tools.cpp @@ -27,7 +27,7 @@ using namespace std; -void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool different, int* bad) { +void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool different, int* bad, int countBad) { int r = end-start+1; unsigned char rand_buf[4]; @@ -61,7 +61,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool for (i=0; i<(end-start+1); i++) tempArray[i]=1; if(bad) { - for(i=0;i<(int)(sizeof(bad)/sizeof(int));i++) { + for(i=0;i