formatting logs

This commit is contained in:
floty
2007-10-06 21:11:43 +00:00
parent 27fb7d8e25
commit f0acfb19e1
2 changed files with 14 additions and 14 deletions
+13 -13
View File
@@ -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;
+1 -1
View File
@@ -343,7 +343,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) {
//if write logfiles is enabled
logFileStreamString += "<table><tr><td width=\"600\" align=\"center\"><hr noshade size=\"3\"><b>Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+"</b></td><td></td></tr></table>";
logFileStreamString += "<p>BLIND LEVEL: "+QString::number(currentHand->getSmallBlind())+"$/"+QString::number(currentHand->getSmallBlind()*2)+"$</br>";
logFileStreamString += "<p style=\"font-size:smaller\">BLIND LEVEL: "+QString::number(currentHand->getSmallBlind())+"$/"+QString::number(currentHand->getSmallBlind()*2)+"$</br>";
//print cash only for active players
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) {