#
if (exists($info->{'pv1'}) && !exists($info->{'pv2'})) {
for my $key (qw(pv score_cp score_mate nodes nps depth seldepth tbhits)) {
- if (exists($info->{$key . '1'}) && !exists($info->{$key})) {
+ if (exists($info->{$key . '1'})) {
$info->{$key} = $info->{$key . '1'};
}
}
} 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;
}