From: H.G. Muller Date: Sat, 6 Nov 2010 13:19:56 +0000 (+0100) Subject: Restrict use of a2a3 kludge X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=bb4d76aafcb93c821d31fea13bf7fbd5b14a2d2f;p=xboard.git Restrict use of a2a3 kludge The kudge to send "a2a3" in stead of "black" to get black to move is fatally flawed in varants that have no Pawn on a2. So in that case we revert to use of the deprecated "black" command. --- diff --git a/backend.c b/backend.c index de835ae..9bad36b 100644 --- a/backend.c +++ b/backend.c @@ -5595,7 +5595,8 @@ SendBoard(cps, moveNum) /* Kludge to set black to move, avoiding the troublesome and now * deprecated "black" command. */ - if (!WhiteOnMove(moveNum)) SendToProgram("a2a3\n", cps); + if (!WhiteOnMove(moveNum)) // [HGM] but better a deprecated command than an illegal move... + SendToProgram(boards[0][1][BOARD_LEFT] == WhitePawn ? "a2a3\n" : "black\n", cps); SendToProgram("edit\n", cps); SendToProgram("#\n", cps);