projects
/
gnushogi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
24968d3
)
Fix psweep list for mini-Shogi
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Wed, 5 Mar 2014 11:35:25 +0000 (12:35 +0100)
committer
H.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
patch
|
blob
|
history
diff --git
a/gnushogi/init.c
b/gnushogi/init.c
index
1c034d0
..
da7bd4b
100644
(file)
--- a/
gnushogi/init.c
+++ b/
gnushogi/init.c
@@
-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