From 32cf200c981ea76612f099b544da2ca0e7c956c3 Mon Sep 17 00:00:00 2001 From: floty Date: Mon, 3 Sep 2007 14:04:12 +0000 Subject: [PATCH] =?UTF-8?q?bugfix:=20Task=20#5=20=E2=80=94=20bet=20error?= =?UTF-8?q?=20in=20turn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/engine/local_engine/localplayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/local_engine/localplayer.cpp b/src/engine/local_engine/localplayer.cpp index 7877f33f..7069556b 100755 --- a/src/engine/local_engine/localplayer.cpp +++ b/src/engine/local_engine/localplayer.cpp @@ -619,7 +619,7 @@ void LocalPlayer::flopEngine() { Tools::getRandNumber(1,8,1,&rand,0); bet = rand*actualHand->getSmallBlind(); // bet zu klein - if(bet == 0) { + if(bet < 2*actualHand->getSmallBlind()) { bet = 2*actualHand->getSmallBlind(); } // all in bei nur wenigen Chips @@ -1193,7 +1193,7 @@ void LocalPlayer::turnEngine() { Tools::getRandNumber(1,8,1,&rand,0); bet = rand*actualHand->getSmallBlind(); // bet zu klein - if(bet == 0) { + if(bet < 2*actualHand->getSmallBlind()) { bet = 2*actualHand->getSmallBlind(); } // all in bei nur wenigen Chips @@ -1516,7 +1516,7 @@ void LocalPlayer::riverEngine() { Tools::getRandNumber(1,8,1,&rand,0); bet = rand*actualHand->getSmallBlind(); // bet zu klein - if(bet == 0) { + if(bet < 2*actualHand->getSmallBlind()) { bet = 2*actualHand->getSmallBlind(); } // all in bei nur wenigen Chips