From: Benjamin Auder Date: Sat, 29 Feb 2020 03:28:00 +0000 (+0100) Subject: Fix X-Git-Url: https://git.auder.net/doc/html/pieces/%7B%7B%20asset%28%27mixstore/images/%3C?a=commitdiff_plain;h=e891730f77312340d68bb7ef72a4207541fa3914;p=vchess.git Fix --- diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 100f7efb..2a54cbbe 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -359,9 +359,11 @@ export default { new Audio("/sounds/move.mp3").play().catch(() => {}); if (this.vr.turn != initurn) { // Turn has changed: move is complete - if (!smove.fen) + if (!smove.fen) { // NOTE: only FEN of last sub-move is required (thus setting it here) smove.fen = this.vr.getFen(); + this.emitFenIfAnalyze(); + } this.inMultimove = false; const score = this.vr.getCurrentScore(); if (score != "*") { @@ -408,10 +410,8 @@ export default { if (received && this.cursor < this.moves.length - 1) this.gotoEnd(); playMove(); - this.emitFenIfAnalyze(); }, cancelCurrentMultimove: function() { - // Cancel current multi-move const L = this.moves.length; let move = this.moves[L-1]; if (!Array.isArray(move)) move = [move];