Fix psweep list for mini-Shogi
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 5 Mar 2014 11:35:25 +0000 (12:35 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 5 Mar 2014 11:35:25 +0000 (12:35 +0100)
The disabled pieces were not taken out of the list (which would only
wreck things if SAVE_NEXTPOS was defined).

gnushogi/init.c

index 1c034d0..da7bd4b 100644 (file)
@@ -68,8 +68,16 @@ display_t display_type = DISPLAY_X;
 #ifdef SAVE_NEXTPOS
 const small_short psweep[NO_PTYPE_PIECES] =
 {
-    false, true, false, false, false, true, true, true, true, false,
-    false, true, false, false, false
+    false,
+#ifndef MINISHOGI
+    true, false,
+#endif
+    false, false, true, true,
+    true, true, false, false,
+#ifndef MINISHOGI
+    true, false,
+#endif
+    false, false
 };
 #endif