From: Steinar H. Gunderson Date: Sun, 6 Aug 2017 20:10:45 +0000 (+0200) Subject: Handle clocks that enter the PGN after the move do. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=caac7302d229a6841b843883a7c8fde6b1f5247d Handle clocks that enter the PGN after the move do. --- diff --git a/remoteglot.pl b/remoteglot.pl index 699968f..5d907d8 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -346,6 +346,9 @@ sub handle_position { # ignore it. if (defined($pos_calculating) && $pos->fen() eq $pos_calculating->fen()) { $pos_calculating->{'result'} = $pos->{'result'}; + for my $key ('white_clock', 'black_clock', 'white_clock_target', 'black_clock_target') { + $pos_calculating->{$key} //= $pos->{$key}; + } return; }