]> git.sesse.net Git - remoteglot/commitdiff
Show score_cp=0 as 0.00, not +0.00 or -0.00.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Nov 2013 10:43:47 +0000 (11:43 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Nov 2013 10:43:47 +0000 (11:43 +0100)
remoteglot.pl

index b8377ccef8dbb5c28654595dabb8d9fedd8c103f..bb16ebcbd9931d23cc360dfac948b9faeed59c17 100755 (executable)
@@ -1058,6 +1058,9 @@ sub short_score {
        } else {
                if (exists($info->{'score_cp' . $mpv})) {
                        my $score = $info->{'score_cp' . $mpv} * 0.01;
+                       if ($score == 0) {
+                               return " 0.00";
+                       }
                        if ($invert) {
                                $score = -$score;
                        }