From: Steinar H. Gunderson Date: Thu, 21 Nov 2013 19:05:58 +0000 (+0100) Subject: Finally fix the -0.00 bug. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=879aaf22be4d79b966f43e10bff70e82971cb622 Finally fix the -0.00 bug. --- 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; }