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 b3b8163..20cc1fc 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.
                }