projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
12dc935
)
fix for bug #27666: naming of variants
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 11 Oct 2009 21:46:14 +0000 (14:46 -0700)
committer
Arun Persaud
<arun@nubati.net>
Sun, 11 Oct 2009 21:46:14 +0000 (14:46 -0700)
Variant names "misc/xxx" are recognized as "normal", rather than "xxx"
to not get confused by the board "misc shogi" run by FICS.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
1d03351
..
afd2196
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-1549,6
+1549,10
@@
StringToVariant(e)
while( *e++ != '_');
}
+ if(StrCaseStr(e, "misc/")) { // [HGM] on FICS, misc/shogi is not shogi
+ v = VariantNormal;
+ found = TRUE;
+ } else
for (i=0; i<sizeof(variantNames)/sizeof(char*); i++) {
if (StrCaseStr(e, variantNames[i])) {
v = (VariantClass) i;