Let Clear Board respect DarkSquares
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 3 Nov 2014 20:56:29 +0000 (21:56 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 7 May 2015 18:53:31 +0000 (20:53 +0200)
Usually we will clear the board to set up a new position. Not to
redesign the board shape.

backend.c

index bdafe3d..f7b8fd4 100644 (file)
--- 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;
                    }