]> git.sesse.net Git - remoteglot/commitdiff
If the PGN has no clock information, explicitly delete it, so that we do not get...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 11 May 2015 16:35:31 +0000 (18:35 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 11 May 2015 16:35:31 +0000 (18:35 +0200)
remoteglot.pl

index 2a6e2a6b742ef822422556bac6c714718768e421..aaaed104ea94a2fd73ab316678129b4f66b5bf18 100755 (executable)
@@ -1017,6 +1017,9 @@ sub extract_clock {
                $pos->{'black_clock'} = $1;
                return;
        }
                $pos->{'black_clock'} = $1;
                return;
        }
+
+       delete $pos->{'white_clock'};
+       delete $pos->{'black_clock'};
 }
 
 sub find_clock_start {
 }
 
 sub find_clock_start {