X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=675573def081eabb2c1c6ee204456abfaf067d42;hp=e1da304a6732c49023471600ddf310af5e7663ac;hb=7d32d14ab6626993cc72c1d3cebc40f13e95dbed;hpb=73a78c97272fcd068f61469f868068cc94c723b4 diff --git a/remoteglot.pl b/remoteglot.pl index e1da304..675573d 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -1177,6 +1177,9 @@ sub long_score { } else { if (exists($info->{'score_cp' . $mpv})) { my $score = $info->{'score_cp' . $mpv} * 0.01; + if ($score == 0) { + return " 0.00"; + } if ($pos->{'toplay'} eq 'B') { $score = -$score; }