log playerWinsGame in local game

This commit is contained in:
floty
2007-11-01 19:18:52 +00:00
parent 0adcc842d3
commit 60b3ac4c22
+18
View File
@@ -2624,6 +2624,24 @@ void mainWindowImpl::postRiverRunAnimation3() {
}
}
int playersPositiveCashCounter = 0;
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) {
if ((*it_c)->getMyCash() > 0) {
playersPositiveCashCounter++;
}
}
if(playersPositiveCashCounter==1) {
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) {
if ((*it_c)->getMyCash() > 0) {
currentHand->getGuiInterface()->logPlayerWinGame((*it_c)->getMyName(), mySession->getCurrentGame()->getMyGameID());
}
}
}
postRiverRunAnimation3Timer->start(postRiverRunAnimationSpeed/2);
}