fixes 20/40 bug
This commit is contained in:
+2
-2
@@ -108,6 +108,7 @@ Game::~Game()
|
||||
|
||||
void Game::startHand()
|
||||
{
|
||||
|
||||
int i;
|
||||
|
||||
// eventuell vorhandene Hand löschen
|
||||
@@ -119,7 +120,7 @@ void Game::startHand()
|
||||
actualHandID++;
|
||||
|
||||
// smallBlind alle x Runden erhöhen
|
||||
if(actualHandID%(startHandsBeforeRaiseSmallBlind+1) == 0) actualSmallBlind *= 2;
|
||||
if(actualHandID%(startHandsBeforeRaiseSmallBlind+1) == 0) { actualSmallBlind *= 2; }
|
||||
|
||||
//Spieler Action auf 0 setzen
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||
@@ -140,7 +141,6 @@ void Game::startHand()
|
||||
// Hand erstellen
|
||||
actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, startQuantityPlayers, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash);
|
||||
|
||||
|
||||
//GUI bereinigen
|
||||
myGui->nextRoundCleanGui();
|
||||
|
||||
|
||||
@@ -2060,13 +2060,27 @@ void mainWindowImpl::nextRoundCleanGui() {
|
||||
flipHolecardsAllInAlreadyDone = FALSE;
|
||||
|
||||
//Wenn Pause zwischen den Hands in der Konfiguration steht den Stop Button drücken!
|
||||
if (myConfig->readConfigInt("PauseBetweenHands")) { pushButton_break->click(); }
|
||||
if (myConfig->readConfigInt("PauseBetweenHands") && blinkingStartButtonAnimationTimer->isActive() == FALSE ) {
|
||||
pushButton_break->click();
|
||||
}
|
||||
else {
|
||||
//FIX STRG+N Bug
|
||||
pushButton_break->setEnabled(TRUE);
|
||||
breakAfterActualHand=FALSE;
|
||||
}
|
||||
|
||||
|
||||
//Clean breakbutton
|
||||
blinkingStartButtonAnimationTimer->stop();
|
||||
QPalette tempPalette = pushButton_break->palette();
|
||||
tempPalette.setColor(QPalette::Button, QColor(40,82,0));
|
||||
tempPalette.setColor(QPalette::ButtonText, QColor(240,240,240));
|
||||
pushButton_break->setPalette(tempPalette);
|
||||
blinkingStartButtonAnimationTimer->stop();
|
||||
QFontMetrics tempMetrics = this->fontMetrics();
|
||||
int width = tempMetrics.width(tr("Stop"));
|
||||
pushButton_break->setMinimumSize(width+10,20);
|
||||
pushButton_break->setText(tr("Stop"));
|
||||
|
||||
//Clear Statusbarmessage
|
||||
statusBar()->clearMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user