mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-21 03:27:52 +01:00
DroidFish: Fixed capitalization of "SetUp" PGN tag.
This commit is contained in:
parent
cceb19c70d
commit
6b129e2930
|
@ -306,7 +306,7 @@ public class GameTree {
|
|||
String fen = TextIO.toFEN(startPos);
|
||||
if (!fen.equals(TextIO.startPosFEN)) {
|
||||
addTagPair(out, "FEN", fen);
|
||||
addTagPair(out, "Setup", "1");
|
||||
addTagPair(out, "SetUp", "1");
|
||||
}
|
||||
if (!timeControl.equals("?"))
|
||||
addTagPair(out, "TimeControl", timeControl);
|
||||
|
@ -547,7 +547,7 @@ public class GameTree {
|
|||
for (int i = 0; i < nTags; i++) {
|
||||
String name = tagPairs.get(i).tagName;
|
||||
String val = tagPairs.get(i).tagValue;
|
||||
if (name.equals("FEN") || name.equals("Setup")) {
|
||||
if (name.equals("FEN") || name.equals("SetUp")) {
|
||||
// Already handled
|
||||
} else if (name.equals("Event")) {
|
||||
event = val;
|
||||
|
|
Loading…
Reference in New Issue
Block a user