fix for bug #27666: naming of variants
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 11 Oct 2009 21:46:14 +0000 (14:46 -0700)
committerArun 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

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;