From c17be5af2537efd1846443a37d9c7b9624be56b7 Mon Sep 17 00:00:00 2001 From: doitux Date: Sun, 30 Sep 2007 21:49:51 +0000 Subject: [PATCH] bugfix --- src/gui/qt/mainwindow/mainwindowimpl.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index bc2096e9..8efcba5f 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -2753,11 +2753,17 @@ void mainWindowImpl::postRiverRunAnimation3() { - - - - + int nonfoldPlayerCounter = 0; PlayerListConstIterator it_c; + + for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { + if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) { + nonfoldPlayerCounter++; + } + } + + + for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() == currentHand->getCurrentBeRo()->getHighestCardsValue() ) { @@ -2767,7 +2773,7 @@ void mainWindowImpl::postRiverRunAnimation3() { actionLabelArray[(*it_c)->getMyID()]->setPixmap(QPixmap(myAppDataPath +"gfx/gui/table/default/action_winner.png")); //show winnercards if more than one player is active TODO - if ( currentHand->getActivePlayerList()->size() != 1 && myConfig->readConfigInt("ShowFadeOutCardsAnimation")) { + if ( nonfoldPlayerCounter != 1 && myConfig->readConfigInt("ShowFadeOutCardsAnimation")) { int j; int bestHandPos[5];