From bb4d76aafcb93c821d31fea13bf7fbd5b14a2d2f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 6 Nov 2010 14:19:56 +0100 Subject: [PATCH] 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. --- backend.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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); -- 1.7.0.4