X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=c19666281f2aa2d11b7147c7d26119c1060a1d59;hb=ad44a402a550a5697a8124b6307235a5d6188a96;hp=12a82a53a89bcb3160c8cc1362a4e961b3b9738c;hpb=7c13b04e06095b32302ce5bf12c14c1f7a6c09d9;p=xboard.git diff --git a/backend.c b/backend.c index 12a82a5..c196662 100644 --- a/backend.c +++ b/backend.c @@ -12330,6 +12330,8 @@ SaveGamePGN (FILE *f) PrintPGNTags(f, &gameInfo); + if(appData.numberTag && matchMode) fprintf(f, "[Number \"%d\"]\n", nextGame+1); // [HGM] number tag + if (backwardMostMove > 0 || startedFromSetupPosition) { char *fen = PositionToFEN(backwardMostMove, NULL); fprintf(f, "[FEN \"%s\"]\n[SetUp \"1\"]\n", fen); @@ -15633,6 +15635,14 @@ TypeInDoneEvent (char *move) ToNrEvent(2*n-1); return; } + // undocumented kludge: allow command-line option to be typed in! + // (potentially fatal, and does not implement the effect of the option.) + // should only be used for options that are values on which future decisions will be made, + // and definitely not on options that would be used during initialization. + if(strstr(move, "!!! -") == move) { + ParseArgsFromString(move+4); + return; + } if (gameMode != EditGame && currentMove != forwardMostMove && gameMode != Training) {