diff --git a/src/engine/local_engine/localboard.cpp b/src/engine/local_engine/localboard.cpp index a5eb9b93..1437e580 100755 --- a/src/engine/local_engine/localboard.cpp +++ b/src/engine/local_engine/localboard.cpp @@ -75,7 +75,7 @@ void LocalBoard::distributePot() { PlayerListConstIterator it_c; // filling player sets vector - vector playerSets; + vector playerSets; for(it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) { if((*it_c)->getMyActiveStatus()) { playerSets.push_back( ( ((*it_c)->getMyRoundStartCash()) - ((*it_c)->getMyCash()) ) ); @@ -85,11 +85,11 @@ void LocalBoard::distributePot() { } // sort player sets asc - vector playerSetsSort = playerSets; + vector playerSetsSort = playerSets; sort(playerSetsSort.begin(), playerSetsSort.end()); // potLevel[0] = amount, potLevel[1] = sum, potLevel[2..n] = winner - vector potLevel; + vector potLevel; // temp var int highestCardsValue; @@ -154,7 +154,11 @@ void LocalBoard::distributePot() { // --> distribution after smallBlind else { - winnerPointer = currentHand->getDealerPosition(); +// winnerPointer = currentHand->getDealerPosition(); + it = currentHand->getSeatIt(currentHand->getDealerPosition()); + if(it == seatsList->end()) { + throw LocalException(__FILE__, __LINE__, ERR_SEAT_NOT_FOUND); + } for(j=0; jend()) + it = seatsList->begin(); for(l=2; lgetMyUniqueID() == potLevel[l]) winnerHit = true; } } - it = currentHand->getSeatIt(winnerPointer); - if(it == seatsList->end()) { - throw LocalException(__FILE__, __LINE__, ERR_SEAT_NOT_FOUND); - } +// it = currentHand->getSeatIt(winnerPointer); +// if(it == seatsList->end()) { +// throw LocalException(__FILE__, __LINE__, ERR_SEAT_NOT_FOUND); +// } if(jsetMyCash( (*it)->getMyCash() + (int)((potLevel[1])/winnerCount) + 1); // filling winners vector diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 5fe52e14..a31ecf77 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -3662,4 +3662,4 @@ void mainWindowImpl::quitPokerTH() { // painter.drawPixmap(0, 0, pm); // // QMainWindow::paintEvent(event); -// } \ No newline at end of file +// }