bugfix for http://www.pokerth.net/mantis/view.php?id=9
This commit is contained in:
@@ -104,11 +104,11 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
|
|
||||||
case 1: {
|
case 1: {
|
||||||
|
|
||||||
tempBoardArray[0] = 3;
|
tempBoardArray[0] = 48;
|
||||||
tempBoardArray[1] = 17;
|
tempBoardArray[1] = 10;
|
||||||
tempBoardArray[2] = 18;
|
tempBoardArray[2] = 11;
|
||||||
tempBoardArray[3] = 32;
|
tempBoardArray[3] = 1;
|
||||||
tempBoardArray[4] = 33;
|
tempBoardArray[4] = 26;
|
||||||
|
|
||||||
myBoard->setMyCards(tempBoardArray);
|
myBoard->setMyCards(tempBoardArray);
|
||||||
|
|
||||||
@@ -121,8 +121,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
// player0
|
// player0
|
||||||
it = seatsList->begin();
|
it = seatsList->begin();
|
||||||
|
|
||||||
tempPlayerArray[0] = 11;
|
tempPlayerArray[0] = 24;
|
||||||
tempPlayerArray[1] = 12;
|
tempPlayerArray[1] = 45;
|
||||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
@@ -134,15 +134,15 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
|||||||
// player1
|
// player1
|
||||||
it++;
|
it++;
|
||||||
|
|
||||||
/* tempPlayerArray[0] = 12;
|
tempPlayerArray[0] = 38;
|
||||||
tempPlayerArray[1] = 48;
|
tempPlayerArray[1] = 27;
|
||||||
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
|
||||||
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
|
||||||
|
|
||||||
(*it)->setMyCards(tempPlayerArray);
|
(*it)->setMyCards(tempPlayerArray);
|
||||||
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
|
||||||
|
|
||||||
(*it)->setMyBestHandPosition(temp5Array);*/
|
(*it)->setMyBestHandPosition(temp5Array);
|
||||||
|
|
||||||
// player2
|
// player2
|
||||||
it++;
|
it++;
|
||||||
|
|||||||
@@ -859,10 +859,10 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
|
|||||||
switch(myUniqueID) {
|
switch(myUniqueID) {
|
||||||
|
|
||||||
case 0: {
|
case 0: {
|
||||||
myCash=2000;
|
myCash=23110;
|
||||||
} break;
|
} break;
|
||||||
case 1: {
|
case 1: {
|
||||||
myCash=0;
|
myCash=1320;
|
||||||
} break;
|
} break;
|
||||||
case 2: {
|
case 2: {
|
||||||
myCash=0;
|
myCash=0;
|
||||||
@@ -877,8 +877,18 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
|
|||||||
myCash=0;
|
myCash=0;
|
||||||
} break;
|
} break;
|
||||||
case 6: {
|
case 6: {
|
||||||
myCash=1500;
|
myCash=0;
|
||||||
} break;
|
} break;
|
||||||
|
case 7: {
|
||||||
|
myCash=0;
|
||||||
|
} break;
|
||||||
|
case 8: {
|
||||||
|
myCash=0;
|
||||||
|
} break;
|
||||||
|
case 9: {
|
||||||
|
myCash=0;
|
||||||
|
} break;
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1277,7 +1287,7 @@ void LocalPlayer::preflopEngine() {
|
|||||||
|
|
||||||
switch(currentHand->getMyID()) {
|
switch(currentHand->getMyID()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
myAction = PLAYER_ACTION_CALL;
|
myAction = PLAYER_ACTION_CHECK;
|
||||||
// raise = 3000;
|
// raise = 3000;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -1666,7 +1676,8 @@ void LocalPlayer::flopEngine() {
|
|||||||
|
|
||||||
switch(currentHand->getMyID()) {
|
switch(currentHand->getMyID()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
myAction = PLAYER_ACTION_CHECK;
|
myAction = PLAYER_ACTION_BET;
|
||||||
|
bet = 640;
|
||||||
// if(currentHand->getCurrentBeRo()->getHighestSet() > 0) {
|
// if(currentHand->getCurrentBeRo()->getHighestSet() > 0) {
|
||||||
// myAction = PLAYER_ACTION_CALL;
|
// myAction = PLAYER_ACTION_CALL;
|
||||||
// }
|
// }
|
||||||
@@ -2331,7 +2342,8 @@ void LocalPlayer::turnEngine() {
|
|||||||
|
|
||||||
switch(currentHand->getMyID()) {
|
switch(currentHand->getMyID()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
myAction = PLAYER_ACTION_FOLD;
|
myAction = PLAYER_ACTION_RAISE;
|
||||||
|
raise = 40;
|
||||||
// if(currentHand->getCurrentBeRo()->getHighestSet() > 100) {
|
// if(currentHand->getCurrentBeRo()->getHighestSet() > 100) {
|
||||||
// myAction = PLAYER_ACTION_FOLD;
|
// myAction = PLAYER_ACTION_FOLD;
|
||||||
// }
|
// }
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
|
|||||||
blindsList = myGameData.manualBlindsList;
|
blindsList = myGameData.manualBlindsList;
|
||||||
|
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
startSmallBlind = 10;
|
startSmallBlind = 320;
|
||||||
currentSmallBlind = startSmallBlind;
|
currentSmallBlind = startSmallBlind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2404,7 +2404,7 @@ void gameTableImpl::nextRoundCleanGui() {
|
|||||||
flipHolecardsAllInAlreadyDone = FALSE;
|
flipHolecardsAllInAlreadyDone = FALSE;
|
||||||
|
|
||||||
//Wenn Pause zwischen den Hands in der Konfiguration steht den Stop Button drücken!
|
//Wenn Pause zwischen den Hands in der Konfiguration steht den Stop Button drücken!
|
||||||
if (myConfig->readConfigInt("PauseBetweenHands") && blinkingStartButtonAnimationTimer->isActive() == FALSE && myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
|
if (myConfig->readConfigInt("PauseBetweenHands") /*&& blinkingStartButtonAnimationTimer->isActive() == FALSE*/ && myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
|
||||||
pushButton_break->click();
|
pushButton_break->click();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ void startWindowImpl::startNewLocalGame(newGameDialogImpl *v) {
|
|||||||
startData.numberOfPlayers = gameData.maxNumberOfPlayers;
|
startData.numberOfPlayers = gameData.maxNumberOfPlayers;
|
||||||
Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0);
|
Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0);
|
||||||
if(DEBUG_MODE) {
|
if(DEBUG_MODE) {
|
||||||
tmpDealerPos = 1;
|
tmpDealerPos = 0;
|
||||||
}
|
}
|
||||||
startData.startDealerPlayerId = static_cast<unsigned>(tmpDealerPos);
|
startData.startDealerPlayerId = static_cast<unsigned>(tmpDealerPos);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user