fix engine-sync on move-number type-in bug
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 20 Nov 2009 04:23:09 +0000 (20:23 -0800)
committerArun Persaud <arun@nubati.net>
Sun, 22 Nov 2009 19:58:33 +0000 (11:58 -0800)
winboard/winboard.c

index 7678dae..1e65185 100644 (file)
@@ -7186,13 +7186,8 @@ TypeInMoveDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
        }\r
        // [HGM] movenum: allow move number to be typed in any mode\r
        if(sscanf(move, "%d", &n) == 1 && n != 0 ) {\r
-         currentMove = 2*n-1;\r
-         if(currentMove > forwardMostMove)  currentMove = forwardMostMove;\r
-         if(currentMove < backwardMostMove) currentMove = backwardMostMove;\r
+         ToNrEvent(2*n-1);\r
          EndDialog(hDlg, TRUE);\r
-         DrawPosition(TRUE, boards[currentMove]);\r
-         if(currentMove > backwardMostMove) DisplayMove(currentMove - 1);\r
-         else DisplayMessage("", "");\r
          return TRUE;\r
        }\r
       }\r