]> git.sesse.net Git - remoteglot/commitdiff
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 a58168bb3347d663fb5d0c867aa0bcc4bd6090f5..1561ac338d0a615eef815bc0e324ea6e3b736ef2 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);
                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)",
 
                        if (exists($uciinfo{'nodes' . $mpv}) && exists($uciinfo{'nps' . $mpv}) && exists($uciinfo{'depth' . $mpv})) {
                                $text .= sprintf " (%5u kn, %3u kn/s, %2u ply)",