Print seconds with 2 digits in backgroundObserve status line
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 25 Feb 2010 14:13:00 +0000 (15:13 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 25 Feb 2010 14:27:20 +0000 (15:27 +0100)
backend.c

index c4da592..cf62bb4 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -3833,7 +3833,7 @@ ParseBoard12(string)
       CopyBoard(partnerBoard, board);
       if(partnerUp) DrawPosition(FALSE, partnerBoard);
       if(twoBoards) { partnerUp = 0; flipView = !flipView; DrawPosition(TRUE, boards[currentMove]); } // [HGM] dual: redraw own game!
-      sprintf(partnerStatus, "W: %d:%d B: %d:%d (%d-%d) %c", white_time/60000, (white_time%60000)/1000,
+      sprintf(partnerStatus, "W: %d:%02d B: %d:%02d (%d-%d) %c", white_time/60000, (white_time%60000)/1000,
                 (black_time/60000), (black_time%60000)/1000, white_stren, black_stren, to_play);
       DisplayMessage(partnerStatus, "");
        partnerBoardValid = TRUE;