]> git.sesse.net Git - remoteglot/commitdiff
Fix an issue where mpv-only info would take only the first line.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 15 Nov 2013 18:09:32 +0000 (19:09 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 15 Nov 2013 18:09:32 +0000 (19:09 +0100)
remoteglot.pl

index b480b80f8da1b9aa443c4bf54785a4f58e90a76a..b8377ccef8dbb5c28654595dabb8d9fedd8c103f 100755 (executable)
@@ -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'};
                        }
                }