]> git.sesse.net Git - remoteglot/commitdiff
Another sign inversion...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 21 Nov 2013 19:03:21 +0000 (20:03 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 21 Nov 2013 19:03:21 +0000 (20:03 +0100)
remoteglot.pl

index 313ccbe9026c1d807b641d39473de330132ac866..e1da304a6732c49023471600ddf310af5e7663ac 100755 (executable)
@@ -1144,9 +1144,9 @@ sub score_sort_key {
 
        if (defined($info->{'score_mate' . $mpv})) {
                if ($invert) {
 
        if (defined($info->{'score_mate' . $mpv})) {
                if ($invert) {
-                       return -(99999 - $info->{'score_mate' . $mpv});
-               } else {
                        return 99999 - $info->{'score_mate' . $mpv};
                        return 99999 - $info->{'score_mate' . $mpv};
+               } else {
+                       return -(99999 - $info->{'score_mate' . $mpv});
                }
        } else {
                if (exists($info->{'score_cp' . $mpv})) {
                }
        } else {
                if (exists($info->{'score_cp' . $mpv})) {