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 313ccbe..e1da304 100755 (executable)
@@ -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})) {