X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=94f7beeea3d16b1cb63f9798a1b72d979c33448f;hb=fdd81e9b076ecd4a8d8ca0caa0fa9e293a2b509f;hp=c517305e809b8641a5c7111fe502be4112f16fb1;hpb=d75e8535ef79d4267faa60491d420b1d5c79a10c;p=xboard.git diff --git a/backend.c b/backend.c index c517305..94f7bee 100644 --- a/backend.c +++ b/backend.c @@ -4008,7 +4008,7 @@ ParseBoard12(string) } if (gameInfo.boardHeight != ranks || gameInfo.boardWidth != files || - weird && (int)gameInfo.variant <= (int)VariantShogi) { + weird && (int)gameInfo.variant < (int)VariantShogi) { /* [HGM] We seem to have switched variant unexpectedly * Try to guess new variant from board size */ @@ -6161,7 +6161,8 @@ FinishMove(moveType, fromX, fromY, toX, toY, promoChar) the previous line in Analysis Mode */ if ((gameMode == AnalyzeMode || gameMode == EditGame) && currentMove < forwardMostMove) { - PushTail(currentMove, forwardMostMove); // [HGM] vari: save tail of game + if(appData.variations) PushTail(currentMove, forwardMostMove); // [HGM] vari: save tail of game + else forwardMostMove = currentMove; } /* If we need the chess program but it's dead, restart it */