From: Steinar H. Gunderson Date: Mon, 2 Jul 2007 00:55:43 +0000 (+0200) Subject: Fix a scoring bug in multi-PV mode too. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=89ed095b76d91d5bccfcec86fa3962d48c6f8b56;ds=sidebyside Fix a scoring bug in multi-PV mode too. --- diff --git a/remoteglot.pl b/remoteglot.pl index a58168b..1561ac3 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -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)",