X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=e1da304a6732c49023471600ddf310af5e7663ac;hp=313ccbe9026c1d807b641d39473de330132ac866;hb=73a78c97272fcd068f61469f868068cc94c723b4;hpb=9bf6d89b4b7a2fa44352d35f21a9ed817b9f5106 diff --git a/remoteglot.pl b/remoteglot.pl index 313ccbe..e1da304 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -1144,9 +1144,9 @@ sub score_sort_key { if (defined($info->{'score_mate' . $mpv})) { if ($invert) { - return -(99999 - $info->{'score_mate' . $mpv}); - } else { return 99999 - $info->{'score_mate' . $mpv}; + } else { + return -(99999 - $info->{'score_mate' . $mpv}); } } else { if (exists($info->{'score_cp' . $mpv})) {