winner log in local game
This commit is contained in:
@@ -353,7 +353,7 @@ void Log::logNewGameAdminMsg(QString playerName) {
|
|||||||
|
|
||||||
void Log::logPlayerWinGame(QString playerName, int gameID) {
|
void Log::logPlayerWinGame(QString playerName, int gameID) {
|
||||||
|
|
||||||
myW->textBrowser_Log->append( "<br><i><b>"+playerName+" wins game " + QString::number(gameID,10) +"!</i></b>");
|
myW->textBrowser_Log->append( "<i><b>"+playerName+" wins game " + QString::number(gameID,10) +"!</i></b><br>");
|
||||||
|
|
||||||
if(myConfig->readConfigInt("LogOnOff")) {
|
if(myConfig->readConfigInt("LogOnOff")) {
|
||||||
|
|
||||||
|
|||||||
@@ -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("");
|
textBrowser_Log->append("");
|
||||||
|
|
||||||
postRiverRunAnimation3Timer->start(postRiverRunAnimationSpeed/2);
|
postRiverRunAnimation3Timer->start(postRiverRunAnimationSpeed/2);
|
||||||
@@ -2723,6 +2706,13 @@ void mainWindowImpl::postRiverRunAnimation6() {
|
|||||||
|
|
||||||
if (playersPositiveCashCounter==1) {
|
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 ) {
|
if( !DEBUG_MODE ) {
|
||||||
currentGameOver = TRUE;
|
currentGameOver = TRUE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user