From 879aaf22be4d79b966f43e10bff70e82971cb622 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 21 Nov 2013 20:05:58 +0100 Subject: [PATCH] Finally fix the -0.00 bug. --- remoteglot.pl | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.2