diff --git a/src/game.cpp b/src/game.cpp index 3bf6a00e..2325ec31 100755 --- a/src/game.cpp +++ b/src/game.cpp @@ -182,19 +182,19 @@ void Game::initHand() if(actualHand) { // TODO HACK -// for(it=seatsList->begin(); it!=seatsList->end(); it++) { -// if (!(*it)->getMyActiveStatus()) -// { -// if ((*it)->getMyUniqueID() == getCurrentHand()->getCurrentBeRo()->getCurrentPlayersTurnId()) -// { -// it_2 = it; -// it_2++; -// if (it_2 == seatsList->end()) -// it_2 = seatsList->begin(); -// getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId((*it_2)->getMyUniqueID()); -// } -// } -// } + for(it=seatsList->begin(); it!=seatsList->end(); it++) { + if (!(*it)->getMyActiveStatus()) + { + if ((*it)->getMyUniqueID() == getCurrentHand()->getCurrentBeRo()->getCurrentPlayersTurnId()) + { + it_2 = it; + it_2++; + if (it_2 == seatsList->end()) + it_2 = seatsList->begin(); + getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId((*it_2)->getMyUniqueID()); + } + } + } delete actualHand; actualHand = 0; diff --git a/src/gui/qt/mainwindow/log/log.cpp b/src/gui/qt/mainwindow/log/log.cpp index ce55d36f..5e63a80d 100644 --- a/src/gui/qt/mainwindow/log/log.cpp +++ b/src/gui/qt/mainwindow/log/log.cpp @@ -343,7 +343,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) { //if write logfiles is enabled logFileStreamString += "
Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" |
BLIND LEVEL: "+QString::number(currentHand->getSmallBlind())+"$/"+QString::number(currentHand->getSmallBlind()*2)+"$"; + logFileStreamString += "
BLIND LEVEL: "+QString::number(currentHand->getSmallBlind())+"$/"+QString::number(currentHand->getSmallBlind()*2)+"$"; //print cash only for active players for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) {