chess-pgn: Remove the extra check while setting TimeControl tag
TimeControl tag should be set irrespective of whether WhiteTimeLeft or BlackTimeLeft tag has been set Closes #45
This commit is contained in:
parent
cf1feeeace
commit
de1b15d674
1 changed files with 1 additions and 4 deletions
|
@ -254,10 +254,7 @@ public class PGN : Object
|
|||
break;
|
||||
case "TimeControl":
|
||||
if (int64.try_parse (tag_value) == true)
|
||||
{
|
||||
if (game.tags["WhiteTimeLeft"] != null && game.tags["BlackTimeLeft"] != null)
|
||||
game.tags.insert (tag_name, tag_value);
|
||||
}
|
||||
game.tags.insert (tag_name, tag_value);
|
||||
else
|
||||
warning (_("Invalid %s : %s in PGN, setting timer to infinity."), tag_name, tag_value);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue