From: H.G. Muller Date: Fri, 20 Nov 2009 04:23:09 +0000 (-0800) Subject: fix engine-sync on move-number type-in bug X-Git-Tag: v4.4.2.20091122~5 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=45cb613eb2a95c13857b1919c97d3a0db5b8f9ec;p=xboard.git fix engine-sync on move-number type-in bug --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 7678dae..1e65185 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -7186,13 +7186,8 @@ TypeInMoveDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) } // [HGM] movenum: allow move number to be typed in any mode if(sscanf(move, "%d", &n) == 1 && n != 0 ) { - currentMove = 2*n-1; - if(currentMove > forwardMostMove) currentMove = forwardMostMove; - if(currentMove < backwardMostMove) currentMove = backwardMostMove; + ToNrEvent(2*n-1); EndDialog(hDlg, TRUE); - DrawPosition(TRUE, boards[currentMove]); - if(currentMove > backwardMostMove) DisplayMove(currentMove - 1); - else DisplayMessage("", ""); return TRUE; } }