winner log in local game

This commit is contained in:
floty
2007-11-03 14:25:59 +00:00
parent 16fafad001
commit 7b47cad473
2 changed files with 8 additions and 18 deletions
+7 -17
View File
@@ -2631,23 +2631,6 @@ 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());
}
}
}
textBrowser_Log->append("");
postRiverRunAnimation3Timer->start(postRiverRunAnimationSpeed/2);
@@ -2723,6 +2706,13 @@ void mainWindowImpl::postRiverRunAnimation6() {
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());
}
}
if( !DEBUG_MODE ) {
currentGameOver = TRUE;