fixed castling bug in variant twokings.
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 11 Jun 2009 04:30:19 +0000 (21:30 -0700)
committerArun Persaud <arun@nubati.net>
Thu, 11 Jun 2009 04:30:19 +0000 (21:30 -0700)
backend.c

index e3f1cee..face7f1 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -4627,11 +4627,6 @@ InitPosition(redraw)
       break;\r
     case VariantTwoKings:\r
       pieces = twoKingsArray;\r
-      nrCastlingRights = 8;                 /* add rights for second King */\r
-      castlingRights[0][6] = initialRights[2] = 5;\r
-      castlingRights[0][7] = initialRights[5] = 5;\r
-      castlingRank[6] = 0;\r
-      castlingRank[7] = BOARD_HEIGHT-1;\r
       break;\r
     case VariantCapaRandom:\r
       shuffleOpenings = TRUE;\r