X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=be582950b822cf7f6e0fd35599c8fe84f202b8af;hb=b20f4bd2d6366bb099d2f95831e67e83a61fae96;hp=228d9c4be4ab17923a40080d974d09470c23a7d9;hpb=130cca8b28bbba4fe586f4ddad22808d2aa9a537;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 228d9c4b..be582950 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -466,7 +466,7 @@ export default { this.lastMove = smove; // Condition is "!navigate" but we mean "!this.autoplay" if (!navigate) { - if (this.cursor < this.moves.length - 1) + IF (this.cursor < this.moves.length - 1) this.moves = this.moves.slice(0, this.cursor + 1); this.moves.push(smove); } @@ -490,6 +490,7 @@ export default { let self = this; const initurn = this.vr.turn; (function executeMove() { +console.log("execute move " + move.length); const smove = move[moveIdx++]; // NOTE: condition "smove.start.x >= 0" required for Dynamo, // because second move may be empty.