projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Never castle when King has other initial moves
[xboard.git]
/
pgntags.c
diff --git
a/pgntags.c
b/pgntags.c
index
616303d
..
b07f977
100644
(file)
--- a/
pgntags.c
+++ b/
pgntags.c
@@
-1,7
+1,7
@@
/*
* pgntags.c -- Functions to manage PGN tags
*
/*
* pgntags.c -- Functions to manage PGN tags
*
- * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
+ * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014
, 2015
Free Software Foundation, Inc.
*
* Enhancements Copyright 2005 Alessandro Scotti
*
*
* Enhancements Copyright 2005 Alessandro Scotti
*
@@
-115,7
+115,8
@@
ParsePGNTag (char *tag, GameInfo *gameInfo)
} else if (StrCaseCmp(name, "Variant") == 0) {
/* xboard-defined extension */
success = StrSavePtr(value, &gameInfo->variantName) != NULL;
} 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 */
} else if (StrCaseCmp(name, "VariantMen") == 0) {
/* for now ignore this tag, as we have no method yet */
/* for assigning the pieces to XBoard pictograms */