From: H.G. Muller Date: Sun, 16 Jan 2011 20:31:42 +0000 (+0100) Subject: Fix move type-in truncating game X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=231345cae22b7796e67e2a0a6387e6ce22ec7fbd;p=xboard.git 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. --- 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"));