Let Clear Board respect DarkSquares
[xboard.git] / 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;
                    }