From 29ae984961f3af26a9c9c262c590e23a8599e905 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 1 Feb 2017 13:15:25 +0100 Subject: [PATCH] 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. --- backend.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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; } -- 1.7.0.4