Fix a scoring bug in multi-PV mode too.
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 2 Jul 2007 00:55:43 +0000 (02:55 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 2 Jul 2007 00:55:43 +0000 (02:55 +0200)
remoteglot.pl

index a58168b..1561ac3 100755 (executable)
@@ -510,7 +510,7 @@ sub output_screen {
                while (exists($uciinfo{'pv' . $mpv})) {
                        $text .= sprintf "  PV%2u", $mpv;
                        my $score = short_score(\%uciinfo, \%ficsinfo, $mpv);
-                       $text .= "  ($score)" if (!defined($score));
+                       $text .= "  ($score)" if (defined($score));
 
                        if (exists($uciinfo{'nodes' . $mpv}) && exists($uciinfo{'nps' . $mpv}) && exists($uciinfo{'depth' . $mpv})) {
                                $text .= sprintf " (%5u kn, %3u kn/s, %2u ply)",