From 231345cae22b7796e67e2a0a6387e6ce22ec7fbd Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 16 Jan 2011 21:31:42 +0100 Subject: [PATCH] Fix move type-in truncating game Starting a new variation by keeping Shift pressed did not work when OK'ing the move type-in, because there was some code ther that truncated the game. While this could be safely left to UserMoveEvent, which it calls, as the situation is not different from entering moves through the mouse. --- winboard/winboard.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index 5cf1712..c722994 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -6456,8 +6456,6 @@ TypeInMoveDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) if(!ok && move[0] >= 'a') { move[0] += 'A' - 'a'; ok = 2; } // [HGM] try also capitalized if (ok==1 || ok && ParseOneMove(move, gameMode == EditPosition ? blackPlaysFirst : currentMove, &moveType, &fromX, &fromY, &toX, &toY, &promoChar)) { - if (gameMode != Training) - forwardMostMove = currentMove; UserMoveEvent(fromX, fromY, toX, toY, promoChar); } else { DisplayMoveError(_("Could not parse move")); -- 1.7.0.4