From: H.G. Muller Date: Mon, 9 Dec 2013 13:52:32 +0000 (+0100) Subject: Fix sorting of lines in Engine Output X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0e350c1de145793080e5e3e767cb8a6a3f4330ad;p=xboard.git Fix sorting of lines in Engine Output Lines tat were fail-lows or fail-ighs should get the scores on the basis of wich they are sorted corrected to that of te line (for the same move) superceding them, so that other moves can rise to above them, when they score higher than the corrected score. --- diff --git a/engineoutput.c b/engineoutput.c index 42eccc0..8901888 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -413,7 +413,7 @@ InsertionPoint (int len, EngineOutputData *ed) if(ed->moveKey != keys[i+n] && // same move always tops previous one (as a higher score must be a fail low) newScore < scores[i+n]) break; // if it had higher score as previous, move previous in stead - scores[i+n+2] = scores[i+n]; + scores[i+n+2] = ed->moveKey == keys[i+n] ? newScore : scores[i+n]; // correct scores of fail-low/high searches textEnd[i+n+2] = textEnd[i+n] + len; keys[i+n+2] = keys[i+n]; } diff --git a/po/da.po b/po/da.po index 0b0d829..a70db03 100644 --- a/po/da.po +++ b/po/da.po @@ -25,10 +25,10 @@ msgstr "" "PO-Revision-Date: 2012-03-06 12:27+0100\n" "Last-Translator: Byrial Ole Jensen \n" "Language-Team: Danish \n" -"Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: da\n" "X-Generator: Lokalize 1.2\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" diff --git a/po/de.po b/po/de.po index 0919a9e..1afb241 100644 --- a/po/de.po +++ b/po/de.po @@ -11,10 +11,10 @@ msgstr "" "PO-Revision-Date: 2013-01-20 18:51-0800\n" "Last-Translator: Arun Persaud \n" "Language-Team: German \n" -"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: args.h:820 diff --git a/po/es.po b/po/es.po index aabb43d..e4fce62 100644 --- a/po/es.po +++ b/po/es.po @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: es\n" #: args.h:820 #, c-format diff --git a/po/it.po b/po/it.po index 6ca1bf8..65bde87 100644 --- a/po/it.po +++ b/po/it.po @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: it\n" #: args.h:820 #, c-format diff --git a/po/ru.po b/po/ru.po index 66ed319..52b3d30 100644 --- a/po/ru.po +++ b/po/ru.po @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: ru\n" #: args.h:820 #, c-format