X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;fp=www%2Fjs%2Fremoteglot.js;h=1e899298cef2997c7392376d1fc8126c78ed1cd0;hp=d89da33b3d5339f5b581c356ba2fb68af78f3389;hb=a3baa02379ebf758b5a5a937ecee335c0e780e4c;hpb=b0c4ec18261ba40c2323c83f88e4e647d2039638 diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index d89da33..1e89929 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -796,7 +796,7 @@ var update_refutation_lines = function() { } var invert = (toplay === 'B'); - if (current_display_line && current_display_move % 2 == 0) { + if (current_display_line && current_display_move % 2 == 0 && !current_display_line_is_history) { invert = !invert; } moves = moves.sort(function(a, b) { return compare_by_score(refutation_lines, invert, a, b) });