projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
07713bc
)
Let Clear Board respect DarkSquares
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Mon, 3 Nov 2014 20:56:29 +0000 (21:56 +0100)
committer
H.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
patch
|
blob
|
history
diff --git
a/backend.c
b/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;
}