diff --git a/src/engine/local_engine/localboard.cpp b/src/engine/local_engine/localboard.cpp index 139cee2f..2c74c695 100755 --- a/src/engine/local_engine/localboard.cpp +++ b/src/engine/local_engine/localboard.cpp @@ -243,7 +243,7 @@ void LocalBoard::distributePot() /*int sum = 0; - for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) { + for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); ++it_c) { sum += (*it_c)->getMyCash(); }*/ } @@ -277,7 +277,7 @@ void LocalBoard::determinePlayerNeedToShowCards() std::list > level; - // for(it_c=winners.begin(); it_c != winners.end(); it_c++) { + // for(it_c=winners.begin(); it_c != winners.end(); ++it_c) { // cout << (*it_c) << endl; // } // @@ -347,7 +347,7 @@ void LocalBoard::determinePlayerNeedToShowCards() if(it_c == activePlayerList->end()) it_c = activePlayerList->begin(); if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) { - // for(it_c = firstAfterLastActionPlayerIt; it_c != lastActionPlayerIt; it_c++) { + // for(it_c = firstAfterLastActionPlayerIt; it_c != lastActionPlayerIt; ++it_c) { // if(it_c == lastActionPlayerIt) { // break; @@ -419,7 +419,7 @@ void LocalBoard::determinePlayerNeedToShowCards() // bool showCards; // search for more player who have to show their cards (perhaps not all situation are considered yet) - // for(it_c = ++lastActionPlayerIt; it_c!=activePlayerList->end(); it_c++) { + // for(it_c = ++lastActionPlayerIt; it_c!=activePlayerList->end(); ++it_c) { // // showCards = false; // @@ -429,7 +429,7 @@ void LocalBoard::determinePlayerNeedToShowCards() //// } // } // - // for(it_c = activePlayerList->begin(); it_c!=lastActionPlayerIt; it_c++) { + // for(it_c = activePlayerList->begin(); it_c!=lastActionPlayerIt; ++it_c) { //// if((*it_c)->getMyCardsValueInt() >= highestCardsValueInt) { //// playerNeedToShowCards.push_back((*it_c)->getMyUniqueID()); //// highestCardsValueInt = (*it_c)->getMyCardsValueInt(); diff --git a/src/engine/log.cpp b/src/engine/log.cpp index 4f2a72a6..d53abec3 100644 --- a/src/engine/log.cpp +++ b/src/engine/log.cpp @@ -166,7 +166,7 @@ Log::logNewGameMsg(int gameID, int startCash, int startSmallBlind, unsigned deal sql += "," + boost::lexical_cast(startCash); sql += "," + boost::lexical_cast(startSmallBlind); sql += "," + boost::lexical_cast(dealerPosition); - for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) { + for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) { if((*it_c)->getMyActiveStatus()) { sql += ",\"" + (*it_c)->getMyName() +"\""; } else { @@ -188,7 +188,7 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned curHandID = handID; PlayerListConstIterator it_c; - for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) { + for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) { (*it_c)->setLogHoleCardsDone(false); } @@ -220,7 +220,7 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned sql += "," + boost::lexical_cast(smallBlindPosition); sql += "," + boost::lexical_cast(bigBlind); sql += "," + boost::lexical_cast(bigBlindPosition); - for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) { + for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) { if((*it_c)->getMyActiveStatus()) { sql += "," + boost::lexical_cast((*it_c)->getMyRoundStartCash()); } else { @@ -235,7 +235,7 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned // !! TODO !! Hack, weil Button-Regel noch falsch und dealerPosition noch teilweise falsche ID enthält (HeadsUp: dealerPosition=bigBlindPosition <-- falsch) bool dealerButtonOnTable = false; int countActivePlayer = 0; - for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) { + for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) { if((*it_c)->getMyActiveStatus()) { countActivePlayer++; if((*it_c)->getMyButton()==BUTTON_DEALER && (*it_c)->getMyActiveStatus()) { @@ -252,12 +252,12 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned } // log blinds - for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) { + for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) { if((*it_c)->getMyButton() == BUTTON_SMALL_BLIND) { logPlayerAction(GAME_STATE_PREFLOP,smallBlindPosition,LOG_ACTION_SMALL_BLIND,(*it_c)->getMySet()); } } - for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) { + for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) { if((*it_c)->getMyButton() == BUTTON_BIG_BLIND) { logPlayerAction(GAME_STATE_PREFLOP,bigBlindPosition,LOG_ACTION_BIG_BLIND,(*it_c)->getMySet()); }