From 43af9167802e5ce0cf6f88c34785c11043c289bf Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 6 Nov 2010 19:42:16 +0100 Subject: [PATCH] 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. --- moves.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) 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