projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
985cec5
)
Remove castling rights from Suicide start position
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Wed, 1 Feb 2017 12:15:25 +0000 (13:15 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Wed, 1 Feb 2017 12:15:25 +0000 (13:15 +0100)
Suicide was initialized with castling rights, while the move generator
in fact would suppress any castling. The fake rights would appear in FENs,
and break probing of the GUI book.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
4537da1
..
9281e7e
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-6348,10
+6348,11
@@
InitPosition (int redraw)
shuffleOpenings = 1;
break;
case VariantNoCastle:
- pieces = FIDEArray;
- nrCastlingRights = 0;
/* !!?unconstrained back-rank shuffle */
shuffleOpenings = 1;
+ case VariantSuicide:
+ pieces = FIDEArray;
+ nrCastlingRights = 0;
break;
}