From: H.G.Muller Date: Mon, 3 Nov 2014 20:56:29 +0000 (+0100) Subject: Let Clear Board respect DarkSquares X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=fc35dc2b6c259ac6119b013d9391b4db10368635;p=xboard.git Let Clear Board respect DarkSquares Usually we will clear the board to set up a new position. Not to redesign the board shape. --- diff --git a/backend.c b/backend.c index bdafe3d..f7b8fd4 100644 --- a/backend.c +++ b/backend.c @@ -15121,7 +15121,7 @@ EditPositionMenuEvent (ChessSquare selection, int x, int y) AAA + x, ONE + y); SendToICS(buf); } - } else { + } else if(boards[0][y][x] != DarkSquare) { if(boards[0][y][x] != p) nonEmpty++; boards[0][y][x] = p; }