From 8265530cb006919f68a73d83535a88b535f33768 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 5 Mar 2020 00:37:28 +0100
Subject: [PATCH] Fix. Was an issue in berolina variant

---
 client/src/variants/Berolina.js | 11 ++++-------
 client/src/views/Game.vue       |  4 ----
 2 files changed, 4 insertions(+), 11 deletions(-)

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: {
-- 
2.44.0