]> git.sesse.net Git - remoteglot/commitdiff
Fix 0.00 showing for long_score, too.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Nov 2013 10:48:26 +0000 (11:48 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 16 Nov 2013 10:48:26 +0000 (11:48 +0100)
remoteglot.pl

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