From 60b3ac4c223193b345f4e028bf817bb04102071b Mon Sep 17 00:00:00 2001 From: floty Date: Thu, 1 Nov 2007 19:18:52 +0000 Subject: [PATCH] log playerWinsGame in local game --- src/gui/qt/mainwindow/mainwindowimpl.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 37e8cc59..60af6689 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -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); }