From: Benjamin Auder Date: Mon, 9 Mar 2020 12:55:53 +0000 (+0100) Subject: Fix enpassant checks for Rifle variant (among others maybe) X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/static/doc/html/index.html?a=commitdiff_plain;h=da37e2b8639a5c2fa8f10d7a94acb90a7b358647;p=vchess.git Fix enpassant checks for Rifle variant (among others maybe) --- diff --git a/client/src/base_rules.js b/client/src/base_rules.js index b39fe9c4..aec119a0 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -204,7 +204,7 @@ export const ChessRules = class ChessRules { Math.abs(s.x - e.x) == 2 && s.y == e.y && move.vanish[0].p == V.PAWN && - ["w", "b"].includes(move.appear[0].c) + ["w", "b"].includes(move.vanish[0].c) ) { return { x: (s.x + e.x) / 2, diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index a7cb6a90..f24430b8 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -161,6 +161,7 @@ export default { virtualClocks: [], vr: null, //"variant rules" object initialized from FEN drawOffer: "", + infoMessage: "", rematchOffer: "", people: {}, //players + observers onMygames: [], //opponents (or me) on "MyGames" page