X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=pgntags.c;h=7e66de1c46104587c9324975edaf20282694e6cf;hb=ca87afb87619efbaa94fe045670bc916e9ffe3ec;hp=d5321723e5fbf86dbc1fa32266270f7294a141d1;hpb=91d8e5853ca580769cc130aa6ea004869118d171;p=xboard.git diff --git a/pgntags.c b/pgntags.c index d532172..7e66de1 100644 --- a/pgntags.c +++ b/pgntags.c @@ -1,9 +1,10 @@ /* * pgntags.c -- Functions to manage PGN tags - * XBoard $Id: pgntags.c,v 2.1 2003/10/27 19:21:00 mann Exp $ * * Copyright 1995,2009 Free Software Foundation, Inc. * + * Enhancements Copyright 2005 Alessandro Scotti + * * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -106,6 +107,10 @@ int ParsePGNTag(tag, gameInfo) else gameInfo->result = GameUnfinished; success = TRUE; + } else if (StrCaseCmp(name, "TimeControl") == 0) { +// int tc, mps, inc = -1; +// if(sscanf(value, "%d/%d", &mps, &tc) == 2 || ) + success = StrSavePtr(value, &gameInfo->timeControl) != NULL; } else if (StrCaseCmp(name, "FEN") == 0) { success = StrSavePtr(value, &gameInfo->fen) != NULL; } else if (StrCaseCmp(name, "SetUp") == 0) {