]> git.sesse.net Git - remoteglot/commitdiff
Unbreak move chaining.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 6 Jun 2018 17:03:42 +0000 (19:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 6 Jun 2018 17:03:42 +0000 (19:03 +0200)
www/js/remoteglot.js

index b3b8163f0bd1dca60ca0c495eda7b987c413b0bd..20cc1fc6ca661ef9f88f65f2497a8d5e81c6eb2e 100644 (file)
@@ -1207,7 +1207,7 @@ var update_board = function() {
                                break;
                        }
                        create_arrow(move.from, move.to, '#f66', 6, 20);
-                       last_to = move.from;
+                       last_to = move.to;
                        hiddenboard.move(data['pv'][i + 1]);  // To keep continuity.
                }