From: Benjamin Auder Date: Wed, 4 Mar 2020 23:37:28 +0000 (+0100) Subject: Fix. Was an issue in berolina variant X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/current/pieces/doc/config.php?a=commitdiff_plain;h=8265530cb006919f68a73d83535a88b535f33768;p=vchess.git Fix. Was an issue in berolina variant --- diff --git a/client/src/variants/Berolina.js b/client/src/variants/Berolina.js index 03b1b3b2..5f8d9c09 100644 --- a/client/src/variants/Berolina.js +++ b/client/src/variants/Berolina.js @@ -18,13 +18,10 @@ export const VariantRules = class BerolinaRules extends ChessRules { const move = moveOrSquare; const [sx, ex, sy] = [move.start.x, move.end.x, move.start.y]; if (this.getPiece(sx, sy) == V.PAWN && Math.abs(sx - ex) == 2) { - return [ - { - x: (ex + sx) / 2, - y: (move.end.y + sy) / 2 - }, - move.end.y - ]; + return { + x: (ex + sx) / 2, + y: (move.end.y + sy) / 2 + }; } return undefined; //default } diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 69878a09..8f49c5d7 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -727,10 +727,6 @@ export default { break; } if (this.game.type == "corr") { - - -console.log("new fen : " + this.game.fen); - GameStorage.update(this.gameRef.id, { fen: this.game.fen, move: {