From 81452d4dd5d64d93322c6ba090c6e357e65a68fb Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Mon, 26 Apr 2021 20:28:15 +0200 Subject: [PATCH] Fix display of Hiddenqueen diags in corr games --- client/src/utils/printDiagram.js | 2 +- client/src/views/Game.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 += "<img " + "src='/images/pieces/" + - vr.getPpath(board[i][j], null, null, orientation) + + vr.getPpath(board[i][j], args.color, args.score, orientation) + V.IMAGE_EXTENSION + "' " + "class='piece'/>"; } 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"; -- 2.44.0