]> git.sesse.net Git - remoteglot/commitdiff
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 a18f93e1cb191a901f5047e36e6d4aa5c7a88180..e7a0453fd90569488cb10a761a6ac7830e8967ab 100644 (file)
@@ -784,6 +784,7 @@ var update_displayed_line = function() {
 
                move = source + "-" + target;
                hiddenboard.move(move, false);
+               pos = hiddenboard.position();
 
                // Do promotion if needed.
                if (promo != "") {