X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=4f6262ad3ff5091ae4beb2fd828dc566c9bc0eb6;hb=57ee5429b201802b3890c3c775968f41af8353aa;hp=f5e2b858bb9847829f8a02d616ad1ba5d7cfb272;hpb=5dfa0c9055904ec0c8d34439f7f2eaa835bb783c;p=xboard.git diff --git a/backend.c b/backend.c index f5e2b85..4f6262a 100644 --- a/backend.c +++ b/backend.c @@ -7915,6 +7915,7 @@ LeftClick (ClickType clickType, int xPix, int yPix) DisplayMessage("Click in holdings to choose piece", ""); return; } + DrawPosition(FALSE, NULL); // shows piece on from-square during promo popup PromotionPopUp(promoChoice); } else { int oldMove = currentMove; @@ -13925,6 +13926,10 @@ SaveGamePGN2 (FILE *f) snprintf(buf, MSG_SIZ, " %d:%02d%c", seconds/60, seconds%60, 0); } + if(appData.cumulativeTimePGN) { + snprintf(buf, MSG_SIZ, " %+ld", timeRemaining[i & 1][i+1]/1000); + } + snprintf( move_buffer, sizeof(move_buffer)/sizeof(move_buffer[0]),"{%s%.2f/%d%s}", pvInfoList[i].score >= 0 ? "+" : "", pvInfoList[i].score / 100.0,