From f0acfb19e13dd0eb4a42b2d443069be95f13de9f Mon Sep 17 00:00:00 2001 From: floty Date: Sat, 6 Oct 2007 21:11:43 +0000 Subject: [PATCH] formatting logs --- src/game.cpp | 26 +++++++++++++------------- src/gui/qt/mainwindow/log/log.cpp | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) 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)+"
"; - logFileStreamString += "

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++) {