From: H.G. Muller Date: Sun, 8 May 2011 15:07:18 +0000 (+0200) Subject: Let ParsePV always generate SAN move X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ac3b6111accdda18352debad8c380a734d3f932d;p=xboard.git Let ParsePV always generate SAN move --- diff --git a/backend.c b/backend.c index fa46773..bf89ee3 100644 --- a/backend.c +++ b/backend.c @@ -5299,14 +5299,12 @@ fprintf(debugFP,"parsePV: %d %c%c%c%c yy='%s'\nPV = '%s'\n", valid, fromX+AAA, f moveList[endPV-1][3] = toY + ONE; moveList[endPV-1][4] = promoChar; moveList[endPV-1][5] = NULLCHAR; + CoordsToComputerAlgebraic(fromY, fromX, toY, toX, promoChar, moveList[endPV - 1]); strncat(moveList[endPV-1], "\n", MOVE_LEN); - if(storeComments) - CoordsToAlgebraic(boards[endPV - 1], + CoordsToAlgebraic(boards[endPV - 1], PosFlags(endPV - 1), fromY, fromX, toY, toX, promoChar, parseList[endPV - 1]); - else - parseList[endPV-1][0] = NULLCHAR; } while(valid); currentMove = (atEnd || endPV == forwardMostMove) ? endPV : forwardMostMove + 1; if(currentMove == forwardMostMove) ClearPremoveHighlights(); else