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:
Amandeep Singh 2020-06-30 11:55:11 +05:30
parent cf1feeeace
commit de1b15d674

View file

@ -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;