From: Benjamin Auder Date: Mon, 26 Apr 2021 18:28:15 +0000 (+0200) Subject: Fix display of Hiddenqueen diags in corr games X-Git-Url: https://git.auder.net/doc/html/assets/DESCRIPTION?a=commitdiff_plain;h=81452d4dd5d64d93322c6ba090c6e357e65a68fb;p=vchess.git Fix display of Hiddenqueen diags in corr games --- diff --git a/client/src/utils/printDiagram.js b/client/src/utils/printDiagram.js index 4a3a50ee..4239688a 100644 --- a/client/src/utils/printDiagram.js +++ b/client/src/utils/printDiagram.js @@ -102,7 +102,7 @@ export function getDiagram(args) { boardDiv += ""; } diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 0e430fe2..6e9768af 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1618,7 +1618,9 @@ export default { if (["all","byrow"].includes(V.ShowMoves)) { this.curDiag = getDiagram({ position: position, - orientation: V.CanFlip ? this.game.mycolor : "w" + orientation: V.CanFlip ? this.game.mycolor : "w", + color: this.game.mycolor, + score: "*" }); document.querySelector("#confirmDiv > .card").style.width = boardDiv.offsetWidth + "px";