From: H.G.Muller Date: Wed, 1 Feb 2017 12:15:25 +0000 (+0100) Subject: Remove castling rights from Suicide start position X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=29ae984961f3af26a9c9c262c590e23a8599e905;hp=985cec56a6e655776b35dfeaf338f748808651da;p=xboard.git Remove castling rights from Suicide start position 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. --- diff --git a/backend.c b/backend.c index 4537da1..9281e7e 100644 --- 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; }