From: Steinar H. Gunderson Date: Fri, 15 Nov 2013 18:09:32 +0000 (+0100) Subject: Fix an issue where mpv-only info would take only the first line. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=b93f24c566fd338ac0fda226632c05bc3af8f2ac Fix an issue where mpv-only info would take only the first line. --- diff --git a/remoteglot.pl b/remoteglot.pl index b480b80..b8377cc 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -684,7 +684,7 @@ sub output_screen { # if (exists($info->{'pv1'}) && !exists($info->{'pv2'})) { for my $key (qw(pv score_cp score_mate nodes nps depth seldepth tbhits)) { - if (exists($info->{$key . '1'}) && !exists($info->{$key})) { + if (exists($info->{$key . '1'})) { $info->{$key} = $info->{$key . '1'}; } }