X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=pgntags.c;h=fd74df7fd151f610589fbea4749b627ee8ed1c90;hb=1f0538d4e71f928ed4163cd5d39cba2d305cf685;hp=f13eb963cd7dacdb7e30fe2dea6a3a0c560f2b80;hpb=ba3e6a6301920d112fde459b61a5a5206565dcbd;p=xboard.git diff --git a/pgntags.c b/pgntags.c index f13eb96..fd74df7 100644 --- a/pgntags.c +++ b/pgntags.c @@ -115,10 +115,12 @@ ParsePGNTag (char *tag, GameInfo *gameInfo) } else if (StrCaseCmp(name, "Variant") == 0) { /* xboard-defined extension */ success = StrSavePtr(value, &gameInfo->variantName) != NULL; - gameInfo->variant = StringToVariant(value); + if(*value && strcmp(value, engineVariant)) // keep current engine-defined variant if it matches + gameInfo->variant = StringToVariant(value); } else if (StrCaseCmp(name, "VariantMen") == 0) { /* for now ignore this tag, as we have no method yet */ /* for assigning the pieces to XBoard pictograms */ + success = TRUE; } else if (StrCaseCmp(name, PGN_OUT_OF_BOOK) == 0) { /* [AS] Out of book annotation */ success = StrSavePtr(value, &gameInfo->outOfBook) != NULL;