From: H.G. Muller Date: Sat, 6 Nov 2010 18:42:16 +0000 (+0100) Subject: Use SAN even on illegal moves X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=43af9167802e5ce0cf6f88c34785c11043c289bf;p=xboard.git Use SAN even on illegal moves If there is only one piece of type T, moves like Ta1 or Txa1 are never ambiguous, so adding the from square is just cumbersome. --- diff --git a/moves.c b/moves.c index 5634b43..0befdb0 100644 --- a/moves.c +++ b/moves.c @@ -1542,13 +1542,19 @@ ChessMove CoordsToAlgebraic(board, flags, rf, ff, rt, ft, promoChar, out) a piece of the same color. */ outp = out; + c = 0; if (piece != EmptySquare && piece != WhitePawn && piece != BlackPawn) { + int r, f; + for(r=0; r