]> git.sesse.net Git - remoteglot/blobdiff - remoteglot.pl
Fix a missing var declaration.
[remoteglot] / remoteglot.pl
index e1da304a6732c49023471600ddf310af5e7663ac..0522e52888fca392a6f0936d337d76719c79e417 100755 (executable)
@@ -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 "Score:  0.00";
+                       }
                        if ($pos->{'toplay'} eq 'B') {
                                $score = -$score;
                        }