From 45cb613eb2a95c13857b1919c97d3a0db5b8f9ec Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 19 Nov 2009 20:23:09 -0800 Subject: [PATCH] fix engine-sync on move-number type-in bug --- winboard/winboard.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) 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; } } -- 1.7.0.4