From 73a78c97272fcd068f61469f868068cc94c723b4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 21 Nov 2013 20:03:21 +0100 Subject: [PATCH 1/1] Another sign inversion... --- remoteglot.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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})) { -- 2.39.2