log playerWinsGame in local game
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user