delete division by 0 in localplayer.cpp which arised with the change to 10 players

This commit is contained in:
floty
2009-04-15 16:24:46 +00:00
parent e8a3973695
commit e1aad00800
+1 -1
View File
@@ -1246,7 +1246,7 @@ void LocalPlayer::preflopEngine() {
// Standard-Raise-Routine
else {
// raise-Betrag ermitteln
raise = (sBluff/(8-currentHand->getActivePlayerList()->size()))*currentHand->getSmallBlind();
raise = (sBluff/(8-min(7,(int)(currentHand->getActivePlayerList()->size()))))*currentHand->getSmallBlind();
// raise-Betrag zu klein -> mindestens Standard-raise
// if(raise < currentHand->getCurrentBeRo()->getHighestSet()) {
// raise = currentHand->getCurrentBeRo()->getHighestSet();