From caac7302d229a6841b843883a7c8fde6b1f5247d Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 6 Aug 2017 22:10:45 +0200 Subject: [PATCH] Handle clocks that enter the PGN after the move do. --- remoteglot.pl | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.2