Remove castling rights from Suicide start position
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 1 Feb 2017 12:15:25 +0000 (13:15 +0100)
committerH.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

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;
     }