Unbreak promotion again.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 11 Nov 2014 12:53:40 +0000 (13:53 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 11 Nov 2014 12:53:40 +0000 (13:53 +0100)
www/js/remoteglot.js

index a18f93e..e7a0453 100644 (file)
@@ -784,6 +784,7 @@ var update_displayed_line = function() {
 
                move = source + "-" + target;
                hiddenboard.move(move, false);
 
                move = source + "-" + target;
                hiddenboard.move(move, false);
+               pos = hiddenboard.position();
 
                // Do promotion if needed.
                if (promo != "") {
 
                // Do promotion if needed.
                if (promo != "") {