adapt log of local game to log of network/internet game

This commit is contained in:
floty committed 2012-12-22 00:19:53 +01:00
1 parent 2b1543a453
commit dc5f7fb495
8 files changed
+30 -40

No files matched your search

+3 -3
View File
@@ -490,7 +490,7 @@ void LocalHand::setBlinds()
(*it_c)->setMySet((*it_c)->getMyCash());
// 1 to do not log this
(*it_c)->setMyAction(PLAYER_ACTION_ALLIN,1);
(*it_c)->setMyAction(PLAYER_ACTION_ALLIN);
} else {
(*it_c)->setMySet(smallBlind);
@@ -510,7 +510,7 @@ void LocalHand::setBlinds()
(*it_c)->setMySet((*it_c)->getMyCash());
// 1 to do not log this
(*it_c)->setMyAction(PLAYER_ACTION_ALLIN,1);
(*it_c)->setMyAction(PLAYER_ACTION_ALLIN);
} else {
(*it_c)->setMySet(2*smallBlind);
@@ -526,7 +526,7 @@ void LocalHand::switchRounds()
// logging last player action
PlayerListConstIterator previousPlayerIt = getRunningPlayerIt(previousPlayerID);
if(previousPlayerIt != runningPlayerList->end()) {
if(myLog) myLog->logPlayerAction((*previousPlayerIt)->getMyName(),myLog->transformPlayerActionLog((*previousPlayerIt)->getMyAction()),(*previousPlayerIt)->getMySet());
if(myLog) myLog->logPlayerAction((*previousPlayerIt)->getMyName(),myLog->transformPlayerActionLog((*previousPlayerIt)->getMyAction()),(*previousPlayerIt)->getMyLastRelativeSet());
}
PlayerListIterator it, it_1;